diff --git a/lib/grep.sh b/lib/grep.sh index 5aa8a21..4f16819 100644 --- a/lib/grep.sh +++ b/lib/grep.sh @@ -21,7 +21,9 @@ elif grep_flag_available --exclude=.cvs; then fi # export grep settings -alias grep="grep ${GREP_OPTIONS[*]}" +if ((${#GREP_OPTIONS[@]} > 0)); then + alias grep="grep ${GREP_OPTIONS[*]}" +fi # clean up unset GREP_OPTIONS