summaryrefslogtreecommitdiffhomepage
path: root/shell/ash.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-24 01:43:21 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-09-24 01:43:21 +0200
commit2f7894b1bb60ab12b518fac5ea5928f3ec01de28 (patch)
tree98bce8853fdd7e92fb86550bce21c3019d727c1a /shell/ash.c
parentecb179b6d72c58acbdbc707538d7562bc1c0a880 (diff)
ash,hush: fix trap reporting: s/SIGEXIT/EXIT/
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index b7c643195..597bc2808 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -12259,8 +12259,9 @@ trapcmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
if (!*ap) {
for (signo = 0; signo < NSIG; signo++) {
if (trap[signo] != NULL) {
- out1fmt("trap -- %s SIG%s\n",
+ out1fmt("trap -- %s %s%s\n",
single_quote(trap[signo]),
+ (signo == 0 ? "" : "SIG"),
get_signame(signo));
}
}