diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2009-08-11 20:48:15 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-08-11 20:48:15 +1000 |
commit | 68097929869a3a3e511ac2e2c3d9dc3730652286 (patch) | |
tree | 5beaae81eaabcf9d80f88a8744945fd4d9caac5c /ChangeLog | |
parent | [SHELL] Add preliminary LINENO support (diff) | |
download | dash-68097929869a3a3e511ac2e2c3d9dc3730652286.tar.gz dash-68097929869a3a3e511ac2e2c3d9dc3730652286.zip |
[EVAL] Pass EV_TESTED into evalcmd
This patch fixes the case where the eval command is used with set -e and as part of a construct that should not cause the shell to abort, e.g., as part of the condition of an if statement. This is achieved by propagating the EV_TESTED flag into the evalstring function through evalcmd. As this alters the prototype of evalcmd it is now invoked explicitly by evalbltin. The built-in infrastructure has been changed to accomodate this special case. In order to ensure that the EXIT trap is properly executed this patch clears evalskip in exitshell. This wasn't needed before because of the broken way evalstring worked where it always clears evalskip when called by minusc. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index a4d814b..beaad36 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-08-11 Herbert Xu <herbert@gondor.apana.org.au> + + * Pass EV_TESTED into evalcmd. + 2009-08-11 Rocky Bernstein <rocky.bernstein@gmail.com> * Add preliminary LINENO support. |