summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-03-07 14:48:41 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2021-03-07 14:51:33 -0800
commit717c33459d54e089258ad8c7af067944fa3283b1 (patch)
tree1fa58637b29b307fb069f3615bae045dfda1cb8c
parentacc3a793a29ae3998f683ac7d9688e1c7c3fcb01 (diff)
downloadgzip-717c33459d54e089258ad8c7af067944fa3283b1.tar.gz
zgrep: fix option typo
* zgrep.in: Fix typo in option processing that prevented operands like ‘binary-1’.
-rw-r--r--zgrep.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/zgrep.in b/zgrep.in
index ac1e122..5e384bd 100644
--- a/zgrep.in
+++ b/zgrep.in
@@ -69,7 +69,7 @@ while test $# -ne 0; do
option=$(expr "X$option" : 'X\(-.[0-9]*\)');;
(--binary-*=* | --[lm]a*=* | --reg*=*)
;;
- (-[ABCDXdefm] | binary-* | --file | --[lm]a* | --reg*)
+ (-[ABCDXdefm] | --binary-* | --file | --[lm]a* | --reg*)
case ${1?"$option option requires an argument"} in
(*\'*)
optarg=" '"$(printf '%s\n' "$1" | sed "$escape");;