skerr1 has asked for the wisdom of the Perl Monks concerning the following question:
(Solaris 2.6 with Korn Shell) I have a tool called foo. I want to execute it so that the quotes used in the command are retained. Is this possible? So my usage would be:
foo -s "1 2 3"
and I'd like @ARGV to have:
-s, "1 2 3"
As it is, @ARGV has:
-s, 1 2 3
is this just because of the shell? I can do this:
foo -s '"1 2 3"'
but who wants to do that right?
Thanks for helping me understand.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: command line and quotes
by GrandFather (Saint) on Jun 02, 2006 at 04:33 UTC | |
by skerr1 (Sexton) on Jun 02, 2006 at 04:42 UTC | |
Re: command line and quotes
by Tanktalus (Canon) on Jun 02, 2006 at 04:26 UTC | |
by skerr1 (Sexton) on Jun 02, 2006 at 04:39 UTC | |
Re: command line and quotes
by Joost (Canon) on Jun 02, 2006 at 10:08 UTC | |
by ambrus (Abbot) on Jun 02, 2006 at 11:38 UTC | |
Re: command line and quotes
by greenFox (Vicar) on Jun 02, 2006 at 05:59 UTC |