]> git.ipfire.org Git - thirdparty/xz.git/commit
xzgrep: Avoid passing both -q and -l to grep.
authorLasse Collin <lasse.collin@tukaani.org>
Thu, 9 Oct 2014 15:42:14 +0000 (18:42 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 17 Dec 2014 19:13:42 +0000 (21:13 +0200)
commitf229fa32bf70bf9b109864d216719371af108364
treed32cd258b67f7fcc24f01c9192441ceb2819a916
parent94a1a869ee1b8b854592327e04decd6f8441aaf5
xzgrep: Avoid passing both -q and -l to grep.

The behavior of grep -ql varies:
  - GNU grep behaves like grep -q.
  - OpenBSD grep behaves like grep -l.

POSIX doesn't make it 100 % clear what behavior is expected.
Anyway, using both -q and -l at the same time makes no sense
so both options simply should never be used at the same time.

Thanks to Christian Weisgerber.
src/scripts/xzgrep.in