Imported from ../bash-2.05b.tar.gz.

This commit is contained in:
Jari Aalto 2002-07-17 14:10:11 +00:00
commit 7117c2d221
362 changed files with 34387 additions and 15063 deletions

View file

@ -1,7 +1,7 @@
This file is trap.def, from which is created trap.c.
It implements the builtin "trap" in Bash.
Copyright (C) 1987, 1989, 1991 Free Software Foundation, Inc.
Copyright (C) 1987-2002 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
@ -137,8 +137,7 @@ trap_builtin (list)
if (sig == NO_SIG)
{
builtin_error ("%s: not a signal specification",
list->word->word);
sh_invalidsig (list->word->word);
result = EXECUTION_FAILURE;
}
else
@ -239,8 +238,8 @@ display_traps (list)
i = decode_signal (list->word->word);
if (i == NO_SIG)
{
sh_invalidsig (list->word->word);
result = EXECUTION_FAILURE;
builtin_error ("%s: not a signal specification", list->word->word);
}
else
showtrap (i);