From: David Levine Date: Sun, 22 Jul 2012 17:03:36 +0000 (-0500) Subject: Added test of whatnow with SHELL unset to test-ls, though it doesn't X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=987fadb3bd0a40e55ba4e228dc0ef4269893a2ad;p=mmh Added test of whatnow with SHELL unset to test-ls, though it doesn't reveal anything on Linux, at least. --- diff --git a/test/whatnow/test-ls b/test/whatnow/test-ls index 6509fd0..7a1b77a 100755 --- a/test/whatnow/test-ls +++ b/test/whatnow/test-ls @@ -61,6 +61,16 @@ EOF echo 'ls' | TERM=dumb whatnow -noedit -prompt '' 2> "$actualerr" | \ sort > "$actual" +check "$expectederr" "$actualerr" 'keep first' +check "$expected" "$actual" 'keep first' + +# Check with SHELL unset. system () on Linux (glibc) seems to +# always use /bin/sh, so this test won't reveal anything with it. +unset SHELL + +echo 'ls' | TERM=dumb whatnow -noedit -prompt '' 2> "$actualerr" | \ + sort > "$actual" + check "$expectederr" "$actualerr" check "$expected" "$actual"