mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-12 11:01:15 +02:00
24150: Exit status of null command should be exit status of last cmdsubst.
This commit is contained in:
parent
6e58a1df8f
commit
a124da3a4a
3 changed files with 18 additions and 2 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,6 +1,14 @@
|
||||||
|
2007-12-09 Barton E. Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
|
* 24150 plus unposted: Src/exec.c, Test/D08cmdsubst.ztst:
|
||||||
|
Retain exit status of last non-assignment command substitution
|
||||||
|
across variable assignment processing so that, in the event of
|
||||||
|
no command word to execute, the exit status of the statement is
|
||||||
|
that of the last command substitution (per POSIX).
|
||||||
|
|
||||||
2007-12-09 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
2007-12-09 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||||
|
|
||||||
* 24197, Src/utils.c, Src/Modules/datetime.c: interface to
|
* 24197: Src/utils.c, Src/Modules/datetime.c: interface to
|
||||||
ztrftime() for insufficient memory was broken.
|
ztrftime() for insufficient memory was broken.
|
||||||
|
|
||||||
2007-12-08 Clint Adams <clint@zsh.org>
|
2007-12-08 Clint Adams <clint@zsh.org>
|
||||||
|
|
|
@ -2339,7 +2339,7 @@ execcmd(Estate state, int input, int output, int how, int last1)
|
||||||
lastval = 0;
|
lastval = 0;
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
cmdoutval = 0;
|
cmdoutval = lastval;
|
||||||
if (varspc)
|
if (varspc)
|
||||||
addvars(state, varspc, 0);
|
addvars(state, varspc, 0);
|
||||||
if (errflag)
|
if (errflag)
|
||||||
|
|
|
@ -81,3 +81,11 @@
|
||||||