Hi,

I've noticed inconsistent behavior between trap <number> vs trap <name> when action is null. For example:

$ Version jM 93u 2011-02-08

$ trap '' 0
$ trap 0
$ trap '' exit
$ trap exit
ksh: trap: condition(s) required

$ trap '' 1
$ trap 1
$ trap '' HUP
$ trap HUP
ksh: trap: condition(s) required
$

$ Version M-11/16/88i
$ trap '' exit
$ trap '' 0
$ trap exit
$ trap 0

Not sure if this has been fixed in a later release.

Cheers, Gerald

_______________________________________________
ast-developers mailing list
ast-developers@lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-developers

Reply via email to