@@ -177,7 +177,7 @@ function virtualenvwrapper_derive_workon_home {
177
177
# path might contain stuff to expand.
178
178
# (it might be possible to do this in shell, but I don't know a
179
179
# cross-shell-safe way of doing it -wolever)
180
- if echo " $workon_home_dir " | (unset GREP_OPTIONS; command \e grep ' ([\$~]|//)' > /dev/null)
180
+ if echo " $workon_home_dir " | (unset GREP_OPTIONS; command \g rep -E ' ([\$~]|//)' > /dev/null)
181
181
then
182
182
# This will normalize the path by:
183
183
# - Removing extra slashes (e.g., when TMPDIR ends in a slash)
@@ -599,7 +599,7 @@ function virtualenvwrapper_show_workon_options {
599
599
| command \s ed " s|/$VIRTUALENVWRAPPER_ENV_BIN_DIR /activate |/|g" \
600
600
| command \t r " /" " \n" \
601
601
| command \s ed " /^\s*$/d" \
602
- | (unset GREP_OPTIONS; command \e grep -v ' ^\*$' ) 2> /dev/null
602
+ | (unset GREP_OPTIONS; command \g rep -E -v ' ^\*$' ) 2> /dev/null
603
603
}
604
604
605
605
function _lsvirtualenv_usage {
@@ -1306,7 +1306,7 @@ function wipeenv {
1306
1306
virtualenvwrapper_verify_active_environment || return 1
1307
1307
1308
1308
typeset req_file=" $( virtualenvwrapper_tempfile " requirements.txt" ) "
1309
- pip freeze | egrep -v ' (distribute|wsgiref|appdirs|packaging|pyparsing|six)' > " $req_file "
1309
+ pip freeze | grep -E -v ' (distribute|wsgiref|appdirs|packaging|pyparsing|six)' > " $req_file "
1310
1310
if [ -n " $( cat " $req_file " ) " ]
1311
1311
then
1312
1312
echo " Uninstalling packages:"
0 commit comments