diff options
author | Marc Cornellà <marc.cornella@live.com> | 2014-12-13 19:18:11 +0100 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2014-12-13 19:45:04 +0100 |
commit | 0190eb084bfb39bfa5920f85c2fc33730236217c (patch) | |
tree | e57c3c7977bfc2fdffbad394b25556ef40aca33f | |
parent | cf586b54b8aacd7fad7afc74d4f395da56e828b6 (diff) | |
download | zsh-0190eb084bfb39bfa5920f85c2fc33730236217c.tar.gz zsh-0190eb084bfb39bfa5920f85c2fc33730236217c.tar.bz2 zsh-0190eb084bfb39bfa5920f85c2fc33730236217c.zip |
Use unaliased grep in flag check
-rw-r--r-- | lib/grep.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/grep.zsh b/lib/grep.zsh index 4a44113e1..06751db1a 100644 --- a/lib/grep.zsh +++ b/lib/grep.zsh @@ -9,7 +9,7 @@ GREP_OPTIONS="--color=auto" VCS_FOLDERS="{.bzr,.cvs,.git,.hg,.svn}" grep-flag-available() { - echo | grep $1 "" >/dev/null 2>&1 + echo | command grep $1 "" >/dev/null 2>&1 } if grep-flag-available --exclude-dir=.cvs; then GREP_OPTIONS+=" --exclude-dir=$VCS_FOLDERS" |