From 987fadb3bd0a40e55ba4e228dc0ef4269893a2ad Mon Sep 17 00:00:00 2001 From: David Levine Date: Sun, 22 Jul 2012 12:03:36 -0500 Subject: [PATCH] Added test of whatnow with SHELL unset to test-ls, though it doesn't reveal anything on Linux, at least. --- test/whatnow/test-ls | 10 ++++++++++ 1 file changed, 10 insertions(+) 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" -- 1.7.10.4