public
Created

JRuby favours scripts on PATH

  • Download Gist
readme.md
Markdown
  • put test.sh into a folder and cd into the folder.
  • put jruby-complete-1.7.0.preview2.jar into same folder, or tweak JRUBY var to point to where it lives.
  • run it with bash test.sh
test.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.