hmans / rbfu

Minimal Ruby version management is minimal.
MIT License
118 stars 10 forks source link

Zsh: unrecognized identifier `1' #31

Open rstacruz opened 11 years ago

rstacruz commented 11 years ago
$ rbfu-env @1.9.3-p194
rbfu_activate:9: unrecognized modifier `1'

I'm using zsh.

$ zsh --version
zsh 5.0.0 (x86_64-apple-darwin10.8.0)

This is because substring search:

VERSION=${VERSION:1}

Unfortunately, in zsh (5.0.0) it doesn't seem this is supported with the same syntax (it's VERSION="$VERSION[2,-1]" in zsh).

DexterTheDragon commented 11 years ago

I'm using zsh 5.0.0 without any errors.

% zsh --version
zsh 5.0.0 (x86_64-unknown-linux-gnu)

% rbfu-env @1.9.3-p194
Activated Ruby 1.9.3-p194. (from command line)