diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-03 11:04:48 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-03 11:08:08 +0200 |
commit | 772b1e013bb0068d7347d0bbe2ff73c67358ee1b (patch) | |
tree | 8d7bdd8999ed62db77015e60d6115eb6ff235912 /tests/if-else/test.sh | |
parent | becea217436a79b7ef37a023da6cb4c560225a71 (diff) |
Implement if-else conditions
if
if!
elif
elif!
else
The expression should evaluate to true of false. The if! and elif!
versions are provided as shortcuts to writing if (!...).
See tests/if-else for examples.
Diffstat (limited to 'tests/if-else/test.sh')
-rwxr-xr-x | tests/if-else/test.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/if-else/test.sh b/tests/if-else/test.sh new file mode 100755 index 0000000..b898b3c --- /dev/null +++ b/tests/if-else/test.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +valgrind -q b -q | diff -u test.out - |