Shells in OCaml
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 26 lines 340 B view raw
1Testing if-then-else constructs 2 3 $ cat > test.sh <<EOF 4 > if echo hello 5 > then 6 > echo world 7 > fi 8 > EOF 9 10 $ msh test.sh 11 hello 12 world 13 14 $ cat > test.sh <<EOF 15 > if ls --malformed-option 2>1 > /dev/null 16 > then 17 > echo world 18 > else 19 > echo goodbye 20 > fi 21 > EOF 22 23 $ sh test.sh 24 goodbye 25 $ msh test.sh 26 goodbye