- put
test.sh
into a folder andcd
into the folder. - put
jruby-complete-1.7.0.preview2.jar
into same folder, or tweakJRUBY
var to point to where it lives. - run it with
bash test.sh
Created
September 3, 2012 23:17
-
-
Save lachie/3614674 to your computer and use it in GitHub Desktop.
JRuby favours scripts on PATH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JRUBY=./jruby-complete-1.7.0.preview2.jar | |
rm -rf bin | |
mkdir -p bin | |
cat <<BINFILE > bin/gem | |
puts "I am not really gem" | |
p ARGV | |
BINFILE | |
chmod 0755 bin/gem | |
PATH=./bin:$PATH | |
export PATH | |
java -cp $JRUBY org.jruby.Main -S gem list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment