Re: exit-ing in a trap handler uses the wrong exit code

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


On Sat, Sep 25, 2010, Jilles Tjoelker wrote:
> You are certainly right that POSIX requires this to be handled
> differently, but there are various other shells that are non-compliant
> in the same way as dash and it is easy to avoid the behaviour, so I
> would not recommend depending on it.

 I don't know why it was put there in the first place, but my first
 reaction was to send patch to remove the use of exit in the trap
 handler:
    http://lists.gnu.org/archive/html/qemu-devel/2010-09/msg01803.html
 but the discussion led me to report this bug against dash

 Thanks for your detailed reply!  Am I also expected to log this issue
 somewhere for tracking?

    Cheers,
-- 
Loïc Minier
--
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


[LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

Powered by Linux