From 42fd147f795c98c0bf202e63fb4232434c776000 Mon Sep 17 00:00:00 2001 From: Kyle Evans 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 a39084eb84d4..8cc49f952912 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 ;;