diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2017-08-17 14:15:35 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-08-17 14:18:00 -0700 |
commit | 92526f7246464825c5547ceb08e01433e035c867 (patch) | |
tree | c0b229b67a5dce4ba8e46b74c0c015b5d7bd8b38 /tests | |
parent | bfcad04c5ef73c7d78eeff32127ee8e0462307db (diff) | |
download | grep-92526f7246464825c5547ceb08e01433e035c867.tar.gz |
grep: -L exits with status 0 if a file is selected
Problem reported by Anthony Sottile (Bug#28105).
* NEWS, doc/grep.texi (Exit Status), src/grep.c (usage): Document this.
* src/grep.c (grepdesc): Implement it.
* tests/skip-read: Test it.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/skip-read | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/skip-read b/tests/skip-read index 1eef87e0..3c32c48d 100755 --- a/tests/skip-read +++ b/tests/skip-read @@ -15,7 +15,7 @@ for opts in '-m0 y' '-f /dev/null' '-v ""'; do eval returns_ 1 grep -l $opts $matcher /dev/null > out || fail=1 compare /dev/null out || fail=1 done - eval returns_ 1 grep -L $opts $matcher /dev/null > out || fail=1 + eval grep -L $opts $matcher /dev/null > out || fail=1 compare exp out || fail=1 done done |