diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2016-06-06 19:52:43 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-09-02 22:10:56 +0800 |
commit | 551215bb2f05b6ed0a639e1a20b88906ddd7ef9b (patch) | |
tree | fe196361b9b00c679d6c652a18d29f47eaf0f65c /src/arith_yylex.c | |
parent | eval: Fix exit status when calling eval/dot with no commands (diff) | |
download | dash-551215bb2f05b6ed0a639e1a20b88906ddd7ef9b.tar.gz dash-551215bb2f05b6ed0a639e1a20b88906ddd7ef9b.zip |
trap: Implement POSIX.1-2008 trap reset behaviour
Jonathan Perkin submitted a patch to fix the behaviour of trap when the first argument is an integer. Currently it is treated as a command while POSIX requires it to be treated as a signal. This patch is based on his idea but instead of adding an extra argument to decode_signal I have added a new decode_signum helper. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions