From: lubomir.markovic@... Date: 2006-03-27T01:43:54+09:00 Subject: Re: String to array as command line Thank you.. The behavior is not exactly the same (at least on Win) but I think I can live with it ;-)... Lubos $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ ARGV.each {|ch| puts ch } puts '********' args = Shellwords.shellwords('-v "\"\\"') args.each {|ch| puts ch } $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ >>prog.rb -v "\"\\" "foo\ bar" "another shellword" -v "\ ******** c:/ruby/lib/ruby/1.8/shellwords.rb:39:in `shellwords': Unmatched double quote: (ArgumentError) from c:/ruby/lib/ruby/1.8/shellwords.rb:35:in `loop' from c:/ruby/lib/ruby/1.8/shellwords.rb:35:in `shellwords'