gerald cato
2014-08-19 02:54:53 UTC
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.research.att.com/pipermail/ast-developers/attachments/20140819/046685b0/attachment-0001.html>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.research.att.com/pipermail/ast-developers/attachments/20140819/046685b0/attachment-0001.html>