• R/O
  • SSH
  • HTTPS

yash: Commit


Commit MetaInfo

Revisão4218 (tree)
Hora2022-11-14 00:49:03
Autormagicant

Mensagem de Log

Apply errexit & errreturn to for loop assignment error (#46052)

Mudança Sumário

Diff

--- yash/trunk/NEWS (revision 4217)
+++ yash/trunk/NEWS (revision 4218)
@@ -23,6 +23,8 @@
2323 = The "array" built-in is now completely ignored in the POSIXly-
2424 correct mode. The built-in, formerly a regular built-in, is now
2525 categorized as an "extension" built-in.
26+ * The errexit and errreturn options now work for assignment error
27+ in a for loop.
2628 * The ">" redirection with the noclobber option no longer hangs
2729 when the operand names a symbolic link to a non-existing file.
2830
--- yash/trunk/exec.c (revision 4217)
+++ yash/trunk/exec.c (revision 4218)
@@ -1311,6 +1311,7 @@
13111311 SCOPE_LOCAL : SCOPE_GLOBAL,
13121312 false)) {
13131313 laststatus = Exit_ASSGNERR;
1314+ apply_errexit_errreturn(NULL);
13141315 if (!is_interactive_now)
13151316 finally_exit = true;
13161317 goto done;
Show on old repository browser