aboutsummaryrefslogtreecommitdiff
path: root/testsuite/grep.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/grep.tests')
-rwxr-xr-xtestsuite/grep.tests7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/grep.tests b/testsuite/grep.tests
index e57889790..26f8e69cf 100755
--- a/testsuite/grep.tests
+++ b/testsuite/grep.tests
@@ -177,6 +177,13 @@ testing "grep -w word match second word" \
177 "bword,word\n""wordb,word\n""bwordb,word\n" \ 177 "bword,word\n""wordb,word\n""bwordb,word\n" \
178 "" 178 ""
179 179
180
181testing "grep -x -v -e EXP1 -e EXP2 finds nothing if either EXP matches" \
182 "grep -x -v -e '.*aa.*' -e 'bb.*'; echo \$?" \
183 "1\n" \
184 "" \
185 " aa bb cc\n"
186
180# -r on symlink to dir should recurse into dir 187# -r on symlink to dir should recurse into dir
181mkdir -p grep.testdir/foo 188mkdir -p grep.testdir/foo
182echo bar > grep.testdir/foo/file 189echo bar > grep.testdir/foo/file