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 _______________________________________________ bug-gnulib mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-gnulib
