From 2f7894b1bb60ab12b518fac5ea5928f3ec01de28 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 24 Sep 2009 01:43:21 +0200 Subject: ash,hush: fix trap reporting: s/SIGEXIT/EXIT/ Signed-off-by: Denys Vlasenko --- shell/hush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell/hush.c') diff --git a/shell/hush.c b/shell/hush.c index 9db2091dd..85a45dd6b 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -7099,7 +7099,7 @@ static int FAST_FUNC builtin_trap(char **argv) printf("trap -- "); print_escaped(G.traps[i]); /* bash compat: it says SIGxxx, not just xxx */ - printf(" SIG%s\n", get_signame(i)); + printf(" %s%s\n", i == 0 ? "" : "SIG", get_signame(i)); } } /*fflush(stdout); - done after each builtin anyway */ -- cgit v1.2.3