mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
lib/grep: Avoid alias expansions on the first argument of grep (Fix #229)
This commit is contained in:
committed by
Koichi Murase
parent
6c01437e90
commit
cb3599a312
@ -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
|
||||
|
Reference in New Issue
Block a user