Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pew rm "" remove the WORKON_HOME directory #213

Open
Maillol opened this issue Jul 15, 2019 · 0 comments
Open

pew rm "" remove the WORKON_HOME directory #213

Maillol opened this issue Jul 15, 2019 · 0 comments

Comments

@Maillol
Copy link

Maillol commented Jul 15, 2019

How to reproduce:

$ pew new e1
  No LICENSE.txt / LICENSE found in source
New python executable in /home/vmaillol/venv/e1/bin/python2
Also creating executable in /home/vmaillol/venv/e1/bin/python
Installing setuptools, pip, wheel...
done.
Launching subshell in virtual environment. Type 'exit' or 'Ctrl+D' to return.
Be aware that this environment will be nested on top of 'e2'
$ pew new e2
  No LICENSE.txt / LICENSE found in source
New python executable in /home/vmaillol/venv/e2/bin/python2
Also creating executable in /home/vmaillol/venv/e2/bin/python
Installing setuptools, pip, wheel...
done.
Launching subshell in virtual environment. Type 'exit' or 'Ctrl+D' to return.
Be aware that this environment will be nested on top of 'e1'
$ ls $WORKON_HOME 
e1  e2
$ pew rm ""

Current result:

Pew remove all the virtualenvs and the directory containing the virtualenvs

$ ls $WORKON_HOME 
ls: cannot access '/home/vmaillol/venv': No such file or directory

Expected result:

pew rm displays an error message if the first parameter is an empty string. 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant