diff options
author | Chet Ramey <chet.ramey@case.edu> | 2022-09-26 11:49:46 -0400 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2022-09-26 11:49:46 -0400 |
commit | 74091dd4e8086db518b30df7f222691524469998 (patch) | |
tree | ebe89d8f0ed44b7f79aa3c759d3f85e15996eaee /tests/exec14.sub | |
parent | 9439ce094c9aa7557a9d53ac7b412a23aa66e36b (diff) | |
download | bash-74091dd4e8086db518b30df7f222691524469998.tar.gz |
bash-5.2 distribution sources and documentationbash-5.2
Diffstat (limited to 'tests/exec14.sub')
-rw-r--r-- | tests/exec14.sub | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/exec14.sub b/tests/exec14.sub index 3402fb95..eddd33fa 100644 --- a/tests/exec14.sub +++ b/tests/exec14.sub @@ -45,3 +45,20 @@ $THIS_SH -c '$binecho c && $binecho d && echo e' $THIS_SH -c 'trap "echo WORKS" EXIT ; $binecho x ; $binecho y ; $binecho z' ${THIS_SH} -c 'echo w ; { echo x ; $binecho y; }; $binecho z' + +echo ===== + +( trap "echo WORKS && rm $TMPDIR/x$$" EXIT && touch $TMPDIR/x$$ ) +( trap "echo WORKS && rm $TMPDIR/x$$" EXIT && touch $TMPDIR/x$$ ; $binecho done ) + +( echo a && { $binecho b && $binecho c ; } && echo d ) +( echo a && { $binecho b && $binecho c ; } && echo d ; $binecho e ) + +( echo A && $binecho B ) +( $binecho c && echo d ) + +( $binecho c && $binecho d && echo e ) + +( trap "echo WORKS" EXIT ; $binecho x ; $binecho y ; $binecho z ) + +( echo w ; { echo x ; $binecho y; }; $binecho z ) |