Hey everyone,

having a little trouble with shebang! on a iMac running Leopard.

been looking at the other posts and none of the solutions seem to be
working.

I'm new to Ruby, and would really like to figure this out before I move
on with my book.

So I'm trying to get this script to run:

puts "Hello, Matz!"

I ran "which ruby" from the terminal and the path says: /usr/bin/ruby

so I edited the script to:
#!/usr/bin/ruby
puts "Hello, Matz!"

and I get the following error: -bash: matz.rb: command not found

So what am I missing here?

Thanks
-- 
Posted via http://www.ruby-forum.com/.