7 Bug-Reported-by: Ewan Mellor <Ewan.Mellor@eu.citrix.com>
8 Bug-Reference-ID: <6005BE083BF501439A84DC3523BAC82DC4B964FD12@LONPMAILBOX01.citrite.net>
13 Under some circumstances, an exit trap triggered by a bad substitution
14 error when errexit is enabled will cause the shell to exit with an
15 incorrect exit status (0).
17 Patch (apply with `patch -p0'):
21 @@ -7274,6 +7274,7 @@ parameter_brace_expand (string, indexp,
25 + last_command_exit_value = EXECUTION_FAILURE;
26 report_error (_("%s: bad substitution"), string ? string : "??");
31 @@ -200,7 +200,11 @@ report_error (format, va_alist)
34 if (exit_immediately_on_error)
37 + if (last_command_exit_value == 0)
38 + last_command_exit_value = 1;
39 + exit_shell (last_command_exit_value);
47 regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
48 looks for to find the patch level (for the sccs version string). */
50 -#define PATCHLEVEL 22
51 +#define PATCHLEVEL 23
53 #endif /* _PATCHLEVEL_H_ */