diff options
author | Chet Ramey <chet.ramey@case.edu> | 2022-01-31 09:53:03 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2022-01-31 09:53:03 -0500 |
commit | b325b0e96bd05c76bbfc4d60d0707fc93d58f03f (patch) | |
tree | 9b15fcef840f54cdd5ead129441509b594b883cc /tests/exec14.sub | |
parent | 6e1ab9a367ff927d1815922a24ced22e73ad965e (diff) | |
download | bash-b325b0e96bd05c76bbfc4d60d0707fc93d58f03f.tar.gz |
more changes for here-docs and $'...'; command optimization updates
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 ) |