zsh issues #1101

mpapis opened this Issue Sep 7, 2012 · 5 comments


None yet
3 participants

I was searching for a place to report a zsh issue I found, I'll just add it here.

So, basically zsh makes use of the path variable, it is an array that is linked to $PATH, but the lowercase variant only has unique elements. If one is updated, so is the other.

So, let me write up a small example, intentionally having /usr/bin in $PATH twice:

% echo $PATH
% echo $path
/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin

(In zsh, echo $path basically is the same as the bashism echo ${path[@]}.)

I noticed that $path is being used by e.g. libyaml_installed() so when I issued rvm install 1.9.3 I saw a message saying uname couldn't be found. This is because said function resets $path and hence $PATH.

I'll just use bash for now. :-)


envygeeks commented Sep 10, 2012

This issue is still not fixed even with 87d06f1 applied, as I still have to enter into Bash to get RVM to work at all. Here some basic infos from the terminal (that or this specific patch might have broke my install? I've no real idea of telling unless I go back and pull before this patch):

[10:34:00] jordon@hp:~/.rvm % rvm install ruby-1.9.3-p194 --debug > out.txt
 - install
Fetching: https://rvm.io/src/yaml-0.1.4.tar.gz
Fetch command: curl  -f -L --create-dirs -C - -o yaml-0.1.4.tar.gz
Archive checksum matched, not downloading
Downloaded archive checksum matched.
[2012-09-10 10:34:04] tar xmzf /home/jordon/.rvm/archives/yaml-0.1.4.tar.gz -C /home/jordon/.rvm/src --no-same-owner
current path: /home/jordon/.rvm/src
command(6): tar xmzf /home/jordon/.rvm/archives/yaml-0.1.4.tar.gz -C /home/jordon/.rvm/src --no-same-owner
[2012-09-10 10:34:04] autoreconf -is --force
current path: /home/jordon/.rvm/src/yaml-0.1.4
command(3): autoreconf -is --force
[2012-09-10 10:34:12]  ./configure --prefix=/home/jordon/.rvm/usr 
current path: /home/jordon/.rvm/src/yaml-0.1.4
command(4):  ./configure --prefix=/home/jordon/.rvm/usr 
Error running ' ./configure --prefix=/home/jordon/.rvm/usr ', please read /home/jordon/.rvm/log/ruby-1.9.3-p194/yaml/configure.log
[2012-09-10 10:34:12] make
current path: /home/jordon/.rvm/src/yaml-0.1.4
command(1): make
Error running 'make', please read /home/jordon/.rvm/log/ruby-1.9.3-p194/yaml/make.log
__rvm_update_configure_env:22: bad substitution

And here is a full trace: https://gist.github.com/ff392dec1beeb74684ee
On a side note why is RVM installing libyaml when I have that exact version and headers on the system already 💣


mpapis commented Sep 10, 2012

@envygeeks I know, still working on it - this is why it was only update, I will comment/commit with fixed - when it works


mpapis commented Sep 11, 2012

should be fixed, to many commits to list them all

mpapis was assigned Sep 12, 2012


mpapis commented Sep 14, 2012

closing as it works fine for me now, let me know if it fails

mpapis closed this Sep 14, 2012

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