From: "Loïc Minier" <lool@dooz.org>
To: Jilles Tjoelker <jilles@stack.nl>
Cc: dash@vger.kernel.org
Subject: Re: exit-ing in a trap handler uses the wrong exit code
Date: Sat, 25 Sep 2010 23:42:23 +0200 [thread overview]
Message-ID: <20100925214223.GA4254@bee.dooz.org> (raw)
In-Reply-To: <20100925203404.GA93010@stack.nl>
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
prev parent reply other threads:[~2010-09-25 21:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-25 11:59 exit-ing in a trap handler uses the wrong exit code Loïc Minier
2010-09-25 20:34 ` Jilles Tjoelker
2010-09-25 21:42 ` Loïc Minier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100925214223.GA4254@bee.dooz.org \
--to=lool@dooz.org \
--cc=dash@vger.kernel.org \
--cc=jilles@stack.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.