1 # try running this with bash, ksh, ash, and hush.
2 echo `echo -e foo\\\necho bar`
4 echo THIS IS A TEST >foo
5 cat $(echo FOO | tr 'A-Z' 'a-z')
6 cat foo | tr 'A-Z' 'a-z'
7 cat $(echo FOO | tr 'A-Z' 'a-z') | tr 'A-Z' 'a-z'
9 cat foo | if true; then tr 'A-Z' 'a-z'; else echo bar1; fi
10 cat foo | if false; then tr 'A-Z' 'a-z'; else echo bar2; fi
11 if true; then tr 'A-Z' 'a-z'; else echo bar3; fi <foo
12 if false; then tr 'A-Z' 'a-z'; else echo bar4; fi <foo
13 if true || false; then echo foo; else echo bar5; fi
14 if true && false; then echo bar6; else echo foo; fi
16 # ash, lash, and hush do not create fish; bash and ksh do. Tough.
17 # Thanks to Tapani Tarvainen <tt@mit.jyu.fi> for this stress test.
23 # The following example shows that hush's parser is
24 # not _really_ Bourne compatible
25 echo "echo Hello World" >"a=b"
32 # assuming the shell wasn't too buggy, clean up the mess