You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I put PATH=~/temp/bin:$PATH in a .ruby-env file, it treats $PATH as a literal, instead of expanding it. This is a change of behavior introduced in rvm 1.29.0.
git bisect helped me determine that this was introduced by 83edbd9
Steps to reproduce
~ $ mkdir -p ~/temp/bin && echo "2.4.0" >> ~/temp/.ruby-version && echo "PATH=~/temp/bin:\$PATH" >> ~/temp/.ruby-env
# With 1.28.0, this is valid: $PATH is the usual list of directores, including /bin, /sbin, etc
~ $ rvm get 1.28.0 && rvm reload && rvm in ~/temp do true
# With all versions since 1.29.0, including stable and master, this blows up:
# $PATH is ~/temp/bin:$PATH, i.e. $PATH is not getting expanded when used recursively
~ $ rvm get master && rvm reload && rvm in ~/temp do true
/usr/bin/env: ‘bash’: No such file or directory
Command 'sed' is available in '/bin/sed'
The command could not be located because '/bin' is not included in the PATH environment variable.
sed: command not found
Expected behavior
$PATH should start with ~/temp/bin and then continue with the value of $PATH defined in ~/.bashrc
Actual behavior
$PATH is set to '~/temp/bin:$PATH', without $PATH being expanded
Description
When I put
PATH=~/temp/bin:$PATH
in a .ruby-env file, it treats$PATH
as a literal, instead of expanding it. This is a change of behavior introduced in rvm 1.29.0.git bisect
helped me determine that this was introduced by 83edbd9Steps to reproduce
Expected behavior
$PATH should start with ~/temp/bin and then continue with the value of $PATH defined in ~/.bashrc
Actual behavior
$PATH is set to '~/temp/bin:$PATH', without $PATH being expanded
Environment info
rvm info
:The text was updated successfully, but these errors were encountered: