ash,hush: fix trap reporting: s/SIGEXIT/EXIT/

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2009-09-24 01:43:21 +02:00
parent ecb179b6d7
commit 2f7894b1bb
3 changed files with 9 additions and 8 deletions

View File

@ -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 */