On 9/29/06, ara.t.howard / noaa.gov <ara.t.howard / noaa.gov> wrote:
> 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.

Oh yeah, I forgot that the shell automatically escapes stuff.  Thanks.