From 772b1e013bb0068d7347d0bbe2ff73c67358ee1b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 3 Dec 2015 11:04:48 +0200 Subject: 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. --- tests/if-else/test.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 tests/if-else/test.sh (limited to 'tests/if-else/test.sh') 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 - -- cgit v1.1