1. Jeremy Cantrell
  2. virtualenvwrapper


Jeremy Cantrell  committed bb7e615

Fix the "unmatched [" problem with egrep on sourcing virtualenvwrapper.sh

  • Participants
  • Parent commits 7a03a40
  • Branches default

Comments (0)

Files changed (1)

File virtualenvwrapper.sh

View file
 # path might contain stuff to expand.
 # (it might be possible to do this in shell, but I don't know a
 # cross-shell-safe way of doing it -wolever)
-if echo "$WORKON_HOME" | egrep -e "([$~]|//)" >/dev/null
+if echo "$WORKON_HOME" | egrep -e "([$\~]|//)" >/dev/null
     # This will normalize the path by:
     # - Removing extra slashes (e.g., when TMPDIR ends in a slash)