Skip to content
New issue

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

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

Already on GitHub? # to your account

Duplicate rvm entry in $PATH #618

Closed
Cueball opened this issue Nov 25, 2011 · 0 comments
Closed

Duplicate rvm entry in $PATH #618

Cueball opened this issue Nov 25, 2011 · 0 comments
Milestone

Comments

@Cueball
Copy link

Cueball commented Nov 25, 2011

[Note - this is not a dup of https://github.com//issues/74 - before anyone asks :-) ]

I've been able to replicate this on Mac OS X 10.7.2 (multi-user install) and Ubuntu Server 11.11 (single-user install) using rvm head.

Gist for each scenario...note the duplicate path entries at the end of the first two gists. These entries appear after rvm has been freshly installed and a new terminal opened, but 'rvm ' has never actually been invoked prior to the point you see in the middle of each gist.

Mac OS X 10.7.2 multi-user install - issue present: https://gist.github.com/1393179

Ubuntu Server 11.11 single-user install - issue present: https://gist.github.com/1393180

Mac OS X 10.7.2 multi-user install - with issue corrected: https://gist.github.com/1393181

The fix? Remove the extraneous space after {rvm_bin_path} in scripts/function/env:48 (part of ):

if printf "${PATH//:/ }" | \grep -vF "${rvm_bin_path} " >/dev/null 2>&1

becomes:

if printf "${PATH//:/ }" | \grep -vF "${rvm_bin_path}" >/dev/null 2>&1

Now I could be smoking crack, given that this space appears to have been present "for some time" - if so, feel free to point that out and close this issue with extreme prejudice :-D

[I'd have sent a pull request but it seems too trivial...]

@mpapis mpapis closed this as completed in 23488d7 Nov 25, 2011
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants