Prevent $command from leaking outside of function #189

Merged
merged 1 commit into from Feb 18, 2012

Projects

None yet

3 participants

@amarshall

The $command variable currently sticks around after rbenv finishes executing, overwriting any previous value.

$ command=foo; echo $command; rbenv --help &> /dev/null; echo $command
foo
--help
@NewAlexandria

This works in my environment.
🐺

@sstephenson sstephenson merged commit a49b079 into rbenv:master Feb 18, 2012
@sstephenson

How embarrassing! Thanks for the patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment