rpardee@gmail.com
12/20/2006 9:30:00 PM
Hey All,
At a bash prompt, if I say 'which ruby', I get back
'/opt/csw/bin/ruby'.
So I write a 2-line test script (test.rb):
#!/opt/csw/bin/ruby
puts("It works!")
And I do a 'chmod +x test.rb'.
But when I thereafter say 'test.rb', bash comes back with:
bash: ./test.rb: bad interpreter: No such file or directory
What am I doing wrong?
Thanks!
-Roy