autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Portability problems in autoconf manual


From: Paul Eggert
Subject: Re: Portability problems in autoconf manual
Date: Wed, 29 Apr 2009 12:47:19 -0700
User-agent: Thunderbird 2.0.0.21 (X11/20090409)

It seems that 'trap 1 2 13 15' (without any command) reset the traps in a reasonably portable way,

I'm afraid not.  For example, on Ubuntu 9.04:

$ dash
!-penguin $ trap 1 2
!-penguin $ kill -2 $$
dash: 1: not found

It's hard to argue that this is a bug, since POSIX requires this behavior.

Better it would be to say: "On Solaris 9, /bin/sh may not execute a trap on exit if the trap is defined in a parenthesised sub-shell."

Yes, that sounds more accurate.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]