From bf174d69cc4ae09c41d5c740af158a2cbd5b5218 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 14 Mar 2019 10:32:12 -0500 Subject: I had some pending grep tests I hadn't checked in too. --- tests/grep.test | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/grep.test b/tests/grep.test index cd1e1fda..798a9c6a 100755 --- a/tests/grep.test +++ b/tests/grep.test @@ -156,3 +156,12 @@ testing "" "grep -o -e iss -e ipp" "iss\niss\nipp\n" "" "mississippi" testing "" "grep -o -e gum -e rgu" "rgu\n" "" "argument" testing "early failure" 'grep --what 2>/dev/null || echo $?' "2\n" "" "" + +testing "" 'grep abc ; echo $?' "abcdef\n0\n" "" "abcdef\n" +testing "" 'grep abc doesnotexist input 2>/dev/null; echo $?' \ + "input:abcdef\n2\n" "abcdef\n" "" +mkdir sub +ln -s nope sub/link +testing "" 'grep -r walrus sub 2>/dev/null; echo $?' "1\n" "" "" +rm -rf sub + -- cgit v1.2.3