On Sat, 30 Sep 2006, Joe Van Dyk wrote:

> Hi,
>
> If I launch a Ruby process with:
> ruby something.rb lots of "stuff here" and I want all 'of it'
>
> How can I get a string from inside the ruby process with:
>   lots of "stuff here" and I want all 'of it'
> in it?

you can't.  the " and ' are handled by the shell.

ARGV.join will give you

  [ "lots", "of" "stuff here", "and", "I", "want", "all", "of it"]

note - the quotes will be lost.

read up on bash 'word splitting' and 'quote removal' for more info

http://www.gnu.org/software/bash/manual/bashref.html#SEC36
http://www.gnu.org/software/bash/manual/bashref.html

regards.

-a
-- 
in order to be effective truth must penetrate like an arrow - and that is
likely to hurt. -- wei wu wei