From 5733330834623f71dd57993202bb808126ec5ceb Mon Sep 17 00:00:00 2001 From: Dan Porter Date: Tue, 15 Apr 2014 11:44:12 +0100 Subject: [PATCH] Don't rely on man-pages for grep feature check --- lib/grep.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/grep.zsh b/lib/grep.zsh index 49c156a69..19816bb2d 100644 --- a/lib/grep.zsh +++ b/lib/grep.zsh @@ -5,7 +5,7 @@ # avoid VCS folders if grep supports it GREP_OPTIONS= -if [[ "$(man grep | grep -q exclude-dir)" != "1" ]]; then +if [[ "$(grep --help | grep -q exclude-dir)" != "1" ]]; then for PATTERN in .cvs .git .hg .svn; do GREP_OPTIONS+="--exclude-dir=$PATTERN " done