commit | b4ce4120f87d89476b2d6ab31df43900d2f5ce89 | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Thu Oct 02 21:07:55 2014 +0800 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Thu Oct 02 21:07:55 2014 +0800 |
tree | f4f0e892d1987f9119be2892fee0fa3749523c10 | |
parent | d28c13e7119a605ef152a4310e9415dc7ae9b8f3 [diff] |
[ERROR] Set exitstatus in onint Currently the exit status when we receive SIGINT is set in evalcommand which means that it doesn't always get set. For example, if you press CTRL-C at the prompt of an interactive dash, the exit status is not set to 130 as it is in many other Bourne shells. This patch fixes this by moving the setting of the exit status into onint which also simplifies evalcommand. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>