Imported from ../bash-2.05a.tar.gz.
This commit is contained in:
parent
28ef6c316f
commit
f73dda092b
303 changed files with 37069 additions and 28812 deletions
25
tests/trap2.sub
Executable file
25
tests/trap2.sub
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
set +e
|
||||
trap 'echo ERRTRAP' ERR
|
||||
|
||||
false
|
||||
false
|
||||
false
|
||||
|
||||
echo after falses
|
||||
|
||||
if ! false; then
|
||||
echo if negation ok
|
||||
fi
|
||||
|
||||
! false
|
||||
echo after negation
|
||||
|
||||
while false; do
|
||||
echo while negation ok
|
||||
done
|
||||
|
||||
echo after while
|
||||
|
||||
./trap2a.sub
|
||||
|
||||
echo $(false ; echo command substitution)
|
||||
Loading…
Add table
Add a link
Reference in a new issue