[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] gnulib/gnulib-tool shell quoting problem for Solaris /b
From: |
Bruno Haible |
Subject: |
Re: [bug-gnulib] gnulib/gnulib-tool shell quoting problem for Solaris /bin/sh |
Date: |
Wed, 25 Jan 2006 17:50:47 +0100 |
User-agent: |
KMail/1.5 |
Eric Blake wrote:
> Remember this thread, which patched the same bug in install-sh?
> http://lists.gnu.org/archive/html/bug-autoconf/2005-11/msg00000.html
Thanks for this pointer. It is regrettable that no doc was added to
the autoconf manual about this pitfall.
> Wouldn't "trap ''" be better than "trap :"? trap '' is documented
> as restoring default behavior of the signal
Huh? That's not what you wrote
http://lists.gnu.org/archive/html/bug-autoconf/2005-11/msg00006.html,
and it's not what is written in POSIX
http://www.opengroup.org/susv3/utilities/trap.html.
POSIX says that "trap ''" makes the shell "ignore each specified condition
if it arises". That means, if the user presses Ctrl-C, the shell will
continue to run. That's not what I want here. I just wish the Ctrl-C
to trigger no additional commands, and "trap :" looks right for doing this.
Bruno