Jonathan Perkin <jperkin@xxxxxxxxxx> wrote: > Clarifies a couple of issues with the previous patch, and expands on > the rationale in the commit message. Sorry for the noise -- jperkin > > POSIX.1-2008 for trap adds the following behaviour: > > If the first operand is an unsigned decimal integer, the shell shall > treat all operands as conditions, and shall reset each condition to > the default value. > > The interpretation of this behaviour differs among other shells. In the > case where the first operand is an invalid signo: > > bash-4.3.39(1), zsh-5.1.1: > > $ trap echo 1 2 3 > $ trap 100 1 2 > $ trap > trap -- '100' SIGHUP > trap -- '100' SIGINT > trap -- 'echo' SIGQUIT So dash's behaviour is the same as bash. I'm not changing this. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe dash" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html