moovweb / gvm

Go Version Manager
http://github.com/moovweb/gvm
MIT License
9.91k stars 522 forks source link

breaks shell #356

Open araskachoi opened 3 years ago

araskachoi commented 3 years ago

steps to reproduce:

$ bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
$ gvm install go1.14
$ gvm use go1.14
$ source /Users/danielchoi/.gvm/scripts/gvm
$ gvm use go1.14
$ ls 
> bash: ls: command not found
$ ps aux
> bash: ps: command not found

system:

ProductName:         Mac OS X
ProductVersion:   10.15.5

BASH_VERSION}: 3.2.57(1)-release

gvm version:         Go Version Manager v1.0.22 installed at /Users/a/.gvm
ghost commented 3 years ago

Did you try sourcing your shell with exec $SHELL or completely closing the shell instance and starting a new one?