summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command/_grep
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command/_grep')
-rw-r--r--Completion/Unix/Command/_grep4
1 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_grep b/Completion/Unix/Command/_grep
index 0f1e712fd..120d1feea 100644
--- a/Completion/Unix/Command/_grep
+++ b/Completion/Unix/Command/_grep
@@ -68,7 +68,9 @@ arguments+=(
'(-)--help[display help information]'
)
-_pick_variant -r variant -c "$command" gnu=gnu gpl2=2.5.1 unix --version
+_pick_variant -r variant -c "$command" \
+ gnu=gnu gpl2='(2.5.1|GNU compatible)' unix --version
+
case $variant:$OSTYPE in
(gnu:*|gpl2:freebsd*))
[[ $service != (|g|z|gz|bz)[ef]grep ]] && arguments+=(