-
-
Couldn't load subscription status.
- Fork 14
Open
Description
Using bash, with the recommended eval "$(frum init)" in .bashrc results in cd returning a failure exit code whenever you cd into a directory that does not contain a .ruby-version file.
This breaks any type of shell pipeline that expects to chain commands together (e.g. using bash's $$ operator).
Steps to reproduce:
In a bash shell without having eval'd frum init
- cd to a directory without a
.ruby-versionfile (e.g. /tmp) with a following command, e.g.cd /tmp && touch a - eval "$(frum init)"
- repeat command 1 with a different filename, e.g.
cd /tmp && touch b
Expected behaviour
Both files a and b should be created in the destination directory
Observed behaviour
Only a is created, because once frum is installed cd returns 1 because it is returning the exit code of frum local rather than the underlying cd command.
Metadata
Metadata
Assignees
Labels
No labels