Skip to content

Instantly share code, notes, and snippets.

@tianyicui
Forked from anonymous/gist:707007
Created November 19, 2010 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tianyicui/707042 to your computer and use it in GitHub Desktop.
Save tianyicui/707042 to your computer and use it in GitHub Desktop.
~/projects/jruby ➔ cat test.rb
#!/usr/bin/ruby
puts ARGV.inspect
~/projects/jruby ➔ ./test.rb "a" 'b' c
["a", "b", "c"]
(I hope this can help you understand.)
@tianyicui
Copy link
Author

Quoting are interpreted by the interactive shell. The command being executed know nothing about how are they being quoted in command line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment