hush: "adopt" ash signal4.tests

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2017-07-06 18:40:45 +02:00
parent b18b04c8a8
commit 7456298472
3 changed files with 10 additions and 1 deletions

View File

@ -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;
}

View File

@ -0,0 +1,4 @@
hush: trap: BADNAME: invalid signal specification
1
Trapped
Ok

View File

@ -0,0 +1,5 @@
#!/bin/sh
trap "echo Trapped" BADNAME TERM; echo $?
kill $$
echo Ok