forked from rvm/rvm
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incompatibility with zsh (mkdir error)
* Unlike bash, zsh creates undeclared parameters on export * Exporting undeclared GEM_HOME causes gem env gemdir to return blank * rvm_ruby_gem_home is then set blank * mkdir -p "$rvm_ruby_gem_home" (gemset_select) fails
- Loading branch information
1 parent
1cd2432
commit 21d6083
Showing
3 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21d6083
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will apply this but I have to tweak that function a bit.
21d6083
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am also wondering if there is a zsh setting that would make this unnecessary.
21d6083
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please tweak to your taste. The section for "export" in the "zshbuiltins" manpage reads in part: "If a parameter specified does not already exist, it is created in the global scope." I couldn't find any way to disable that behavior. Thanks!
21d6083
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be applied in head, thanks!