From 2e45301e4f0cafcb36e3f28d9d3b02be0a6d540d Mon Sep 17 00:00:00 2001 From: kevans Date: Thu, 3 May 2018 02:56:13 +0000 Subject: [PATCH] zgrep(1): Note that -r/-R are not currently supported. This is better behavior than just silently doing the wrong thing. We do not currently have plans to support -r/-R with the compression-enabled greps. Reported by: jilles --- usr.bin/grep/zgrep.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr.bin/grep/zgrep.sh b/usr.bin/grep/zgrep.sh index a39084eb84d4fd..8cc49f95291211 100755 --- a/usr.bin/grep/zgrep.sh +++ b/usr.bin/grep/zgrep.sh @@ -106,6 +106,10 @@ do silent=1 shift ;; + -r|-R) + echo "${prg}: the ${1} flag is not currently supported" >&2 + exit 1 + ;; -V|--version) exec ${grep} -V ;;