Searched hist:f98e1b8071abe859e758f8fa1a1907208d40084e (Results 1 – 1 of 1) sorted by relevance
/freebsd/bin/sh/ |
H A D | trap.c | diff f98e1b8071abe859e758f8fa1a1907208d40084e Wed Dec 25 00:59:53 CET 1996 Steve Price <steve@FreeBSD.org> With these changes sh(1)'s trap command should be POSIX-compliant, while remaining (becoming :) compatible with other popular shells. Specifically these changes include:
1) Implement 'trap -l' to get a list of valid signals names. This is useful if you wanted to do something like reset all signal handlers to there defaults values, in which case something like this will do the trick.
trap `trap -l`
2) Reformat the output of 'trap' so it can be saved and later eval'd to restore the saved settings.
3) Allow the use of signal names as well as signal numbers.
4) Fix trap handling of SIGCHLD so that commands like the following (albeit, contrived) won't cause sh(1) to recurse ad infinitum.
trap uname 0 20
5) Make variables static that are used only in trap.c.
6) Minor 'style(9) police' mods. diff f98e1b8071abe859e758f8fa1a1907208d40084e Wed Dec 25 00:59:53 CET 1996 Steve Price <steve@FreeBSD.org> With these changes sh(1)'s trap command should be POSIX-compliant, while remaining (becoming :) compatible with other popular shells. Specifically these changes include:
1) Implement 'trap -l' to get a list of valid signals names. This is useful if you wanted to do something like reset all signal handlers to there defaults values, in which case something like this will do the trick.
trap `trap -l`
2) Reformat the output of 'trap' so it can be saved and later eval'd to restore the saved settings.
3) Allow the use of signal names as well as signal numbers.
4) Fix trap handling of SIGCHLD so that commands like the following (albeit, contrived) won't cause sh(1) to recurse ad infinitum.
trap uname 0 20
5) Make variables static that are used only in trap.c.
6) Minor 'style(9) police' mods.
|