mirror of https://github.com/mirror/busybox.git
hush: "adopt" ash signal4.tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>1_28_stable
parent
b18b04c8a8
commit
7456298472
|
@ -9486,7 +9486,7 @@ static int FAST_FUNC builtin_trap(char **argv)
|
|||
if (sig < 0 || sig >= NSIG) {
|
||||
ret = EXIT_FAILURE;
|
||||
/* Mimic bash message exactly */
|
||||
bb_perror_msg("trap: %s: invalid signal specification", argv[-1]);
|
||||
bb_error_msg("trap: %s: invalid signal specification", argv[-1]);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
hush: trap: BADNAME: invalid signal specification
|
||||
1
|
||||
Trapped
|
||||
Ok
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
trap "echo Trapped" BADNAME TERM; echo $?
|
||||
kill $$
|
||||
echo Ok
|
Loading…
Reference in New Issue