vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 87886a7c5c442807c31546d4b83524c0b4bd1540 parent 4e2b04f3eeaade90ffc737c23df28e5d0ad94deb Author: Josh Wainwright <josh.wainwright@ldra.com> Date: Thu, 21 Apr 2016 12:01:34 +0100 test.sh: silently compare files Diffstat:
| M | lua/test.sh | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lua/test.sh b/lua/test.sh @@ -23,7 +23,7 @@ for t in $test_files; do printf "%-30s" "$t" if [ -e $t.out ]; then - if cmp $t.ref $t.out 2> /dev/null; then + if cmp -s $t.ref $t.out 2> /dev/null; then printf "PASS\n" TESTS_OK=$((TESTS_OK + 1)) else