@@ -62,7 +62,7 @@ virtualenvwrapper_derive_workon_home() {
62
62
63
63
# If the path is relative, prefix it with $HOME
64
64
# (note: for compatibility)
65
- if echo " $workon_home_dir " | (unset GREP_OPTIONS; grep -e ' ^[^/~]' > /dev/null)
65
+ if echo " $workon_home_dir " | (unset GREP_OPTIONS; \ g rep -e ' ^[^/~]' > /dev/null)
66
66
then
67
67
workon_home_dir=" $HOME /$WORKON_HOME "
68
68
fi
@@ -71,7 +71,7 @@ virtualenvwrapper_derive_workon_home() {
71
71
# path might contain stuff to expand.
72
72
# (it might be possible to do this in shell, but I don't know a
73
73
# cross-shell-safe way of doing it -wolever)
74
- if echo " $workon_home_dir " | (unset GREP_OPTIONS; egrep -e " ([\$ ~]|//)" > /dev/null)
74
+ if echo " $workon_home_dir " | (unset GREP_OPTIONS; \ e grep -e " ([\$ ~]|//)" > /dev/null)
75
75
then
76
76
# This will normalize the path by:
77
77
# - Removing extra slashes (e.g., when TMPDIR ends in a slash)
@@ -149,7 +149,7 @@ virtualenvwrapper_initialize () {
149
149
150
150
# Verify that virtualenv is installed and visible
151
151
virtualenvwrapper_verify_virtualenv () {
152
- typeset venv=$( \w hich virtualenv | (unset GREP_OPTIONS; grep -v " not found" ))
152
+ typeset venv=$( \w hich virtualenv | (unset GREP_OPTIONS; \ g rep -v " not found" ))
153
153
if [ " $venv " = " " ]
154
154
then
155
155
echo " ERROR: virtualenvwrapper could not find virtualenv in your path" >&2
@@ -233,7 +233,7 @@ virtualenvwrapper_show_workon_options () {
233
233
# NOTE: DO NOT use ls here because colorized versions spew control characters
234
234
# into the output list.
235
235
# echo seems a little faster than find, even with -depth 3.
236
- (cd " $WORKON_HOME " ; for f in * /bin/activate; do echo $f ; done) 2> /dev/null | sed ' s|^\./||' | sed ' s|/bin/activate||' | sort | (unset GREP_OPTIONS; egrep -v ' ^\*$' )
236
+ (cd " $WORKON_HOME " ; for f in * /bin/activate; do echo $f ; done) 2> /dev/null | sed ' s|^\./||' | sed ' s|/bin/activate||' | sort | (unset GREP_OPTIONS; \ e grep -v ' ^\*$' )
237
237
# (cd "$WORKON_HOME"; find -L . -depth 3 -path '*/bin/activate') | sed 's|^\./||' | sed 's|/bin/activate||' | sort
238
238
}
239
239
@@ -452,7 +452,7 @@ cpvirtualenv() {
452
452
echo " Please specify target virtualenv"
453
453
return 1
454
454
fi
455
- if echo " $WORKON_HOME " | (unset GREP_OPTIONS; grep -e " /$" > /dev/null)
455
+ if echo " $WORKON_HOME " | (unset GREP_OPTIONS; \ g rep -e " /$" > /dev/null)
456
456
then
457
457
typset env_home=" $WORKON_HOME "
458
458
else
0 commit comments