Bug#696823: trap action is not executed in shall exit error

2012-12-28 Thread Jonny
Thank you for an answer. Well noted. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Bug#696823: trap action is not executed in shall exit error

2012-12-27 Thread Thorsten Glaser
Jonny dixit: >following code: > #!/bin/sh > trap 'echo 0' EXIT > unset v > ${v?} > >bash and dash will run the "echo 0", mksh does not perform. >Is this the intended behavior? Hrm. POSIX says: ${parameter:?[word]} Indicate Error if Null or Unset. If parameter is unset or n

Bug#696823: trap action is not executed in shall exit error

2012-12-27 Thread Jonny
Package: mksh Version: 40.9.20120630-4 Hi, following code: #!/bin/sh trap 'echo 0' EXIT unset v ${v?} bash and dash will run the "echo 0", mksh does not perform. Is this the intended behavior? -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubsc