Skip to content

Instantly share code, notes, and snippets.

@headius
Created December 12, 2012 09:42
Show Gist options
  • Save headius/e74ec3e067b397f71080 to your computer and use it in GitHub Desktop.
Save headius/e74ec3e067b397f71080 to your computer and use it in GitHub Desktop.
system ~ $ ls -l blah.rb ; cat blah.rb
-rwxr-xr-x 1 headius staff 53 Dec 12 03:41 blah.rb
#!/Users/headius/foo
puts 'this should run in Ruby'
system ~ $ ls -l foo ; cat foo
-rwxr-xr-x 1 headius staff 21 Dec 12 03:41 foo
#!/bin/bash
ruby $@
system ~ $ ./blah.rb
./blah.rb: line 3: puts: command not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment