From 78a4be9e6862b970ac33d5ea3f95c98e658a3557 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 28 Oct 2019 23:47:08 -0500 Subject: Only create test file "input" when input argument isn't empty. --- tests/grep.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/grep.test') diff --git a/tests/grep.test b/tests/grep.test index 69f8036e..e3753c2c 100755 --- a/tests/grep.test +++ b/tests/grep.test @@ -120,7 +120,7 @@ testing "-HnbB1" "grep -HnbB1 f input" \ testing "-q match overrides error" \ "grep -q hello missing input 2>/dev/null && echo yes" "yes\n" "hello\n" "" testing "-q not found is 1" \ - 'grep -q hello input || echo $?' "1\n" "" "" + 'grep -q hello input || echo $?' "1\n" "x" "" testing "-q missing is 2" \ 'grep -q hello missing missing 2>/dev/null || echo $?' "2\n" "" "" testing "-q missing survives exists but not found" \ -- cgit v1.2.3