Skip to content

Commit 44e0741

Browse files
committed
Fix for processing the argument list in mkvirtualenv from jorgevargas (#1)
1 parent e2594dc commit 44e0741

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

README

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ For more details, refer to the column I wrote for the May 2008 issue of Python M
6969
=======
7070
Updates
7171
=======
72+
1.8
73+
- Fix for processing the argument list in mkvirtualenv from jorgevargas (BitBucket issue #1)
7274

7375
1.7
7476
- Move to bitbucket.org for hosting

pavement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
# What project are we building?
2424
PROJECT = 'virtualenvwrapper'
25-
VERSION = '1.7'
25+
VERSION = '1.8'
2626

2727
# Read the long description to give to setup
2828
README_FILE = 'README'

virtualenvwrapper_bashrc

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,6 @@ function verify_active_environment () {
5858
return 0
5959
}
6060

61-
# Print the last argument given to us.
62-
# There has to be a smarter way to do this!
63-
function _lastarg () {
64-
local a
65-
for a in "$@"
66-
do
67-
echo $a
68-
done | tail -1
69-
}
70-
7161
# Create a new environment, in the WORKON_HOME.
7262
#
7363
# Usage: mkvirtualenv [options] ENVNAME
@@ -76,7 +66,7 @@ function _lastarg () {
7666
function mkvirtualenv () {
7767
verify_workon_home
7868
(cd "$WORKON_HOME"; virtualenv "$@")
79-
workon $(_lastarg "$@")
69+
workon "$_"
8070
}
8171

8272
# Remove an environment, in the WORKON_HOME.

0 commit comments

Comments
 (0)