@@ -100,7 +100,7 @@ virtualenvwrapper_verify_workon_home () {
100
100
virtualenvwrapper_tempfile () {
101
101
# Note: the 'X's must come last
102
102
typeset suffix=${1:- hook}
103
- typeset file=" ` mktemp -t virtualenvwrapper-$suffix -XXXXXXXXXX` "
103
+ typeset file=" ` \ m ktemp -t virtualenvwrapper-$suffix -XXXXXXXXXX` "
104
104
if [ $? -ne 0 ]
105
105
then
106
106
echo " ERROR: virtualenvwrapper could not create a temporary file name." 1>&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; \e grep -v ' ^\*$' )
236
+ (cd " $WORKON_HOME " ; for f in * /bin/activate; do echo $f ; done) 2> /dev/null | \ s ed ' s|^\./||' | \ s ed ' s|/bin/activate||' | \ s ort | (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
@@ -467,17 +467,17 @@ cpvirtualenv() {
467
467
return 1
468
468
fi
469
469
470
- cp -r " $source_env " " $target_env "
471
- for script in $( ls $target_env /bin/* )
470
+ \ c p -r " $source_env " " $target_env "
471
+ for script in $( \ l s $target_env /bin/* )
472
472
do
473
473
newscript=" $script -new"
474
- sed " s|$source_env |$target_env |g" < " $script " > " $newscript "
475
- mv " $newscript " " $script "
476
- chmod a+x " $script "
474
+ \ s ed " s|$source_env |$target_env |g" < " $script " > " $newscript "
475
+ \ m v " $newscript " " $script "
476
+ \ c hmod a+x " $script "
477
477
done
478
478
479
479
virtualenv " $target_env " --relocatable
480
- sed " s/VIRTUAL_ENV\(.*\)$env_name /VIRTUAL_ENV\1$new_env /g" < " $source_env /bin/activate" > " $target_env /bin/activate"
480
+ \ s ed " s/VIRTUAL_ENV\(.*\)$env_name /VIRTUAL_ENV\1$new_env /g" < " $source_env /bin/activate" > " $target_env /bin/activate"
481
481
482
482
(cd " $WORKON_HOME " &&
483
483
virtualenvwrapper_run_hook " pre_cpvirtualenv" " $env_name " " $new_env " &&
0 commit comments