01 echo hi 02 date 03 date ; 04 trap 'echo mytrap' EXIT; date 05 date; echo hi 06 echo hi; date 07 date; date 08 { date; date; } 09 date; { date; } 10 . _tmp/sourced.sh 11 (echo hi) 12 (date) 13 ( ( date ) ) 14 ( ( date ) ); echo hi 15 echo hi; (date) 16 (date;) > /tmp/out.txt 17 (date; echo hi) 18 echo $(date) 19 echo $(echo hi) 20 echo $( ( date ) ) 21 echo $( ( date ); echo hi ) 22 ( echo hi ); echo done 23 date | wc -l 24 ! date | wc -l 25 echo a | wc -l 26 command echo a | wc -l 27 command date | wc -l 28 ! command date | wc -l 29 ( date ) | wc -l 30 date | read x 31 { echo a; echo b; } | wc -l 32 { echo a; echo b; } | wc -l; echo done 33 { echo a; date; } | wc -l 34 ( echo a; echo b ) | wc -l 35 ( echo a; echo b ) | ( wc -l ) 36 echo hi & wait 37 date & wait 38 echo hi | wc -l & wait 39 date | wc -l & wait 40 trap 'echo mytrap' EXIT; date & wait 41 trap 'echo mytrap' EXIT; date | wc -l & wait 42 { trap 'echo mytrap' EXIT; date; } & wait