lib/grep: Avoid alias expansions on the first argument of grep (Fix #229)

This commit is contained in:
David Chin
2021-07-27 17:21:59 -04:00
committed by Koichi Murase
parent 6c01437e90
commit cb3599a312

View File

@ -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