suaveant has asked for the wisdom of the Perl Monks concerning the following question:
so that any any s command the text after the name get shell quoted? I hope that is clear enough...s dave when you use $foo and " it interpolates #to s dave when\ you\ use\ \$foo\ and\ \"\ it\ interploates #basically s/^(s\s+\S+\s+)(.*)/$1\Q$2\E/;
The idea is s is a system messager, and due to the shell if you misquote " or $ it can screw you up... but I know I always want them quoted for that particular command...
- Ant
- Some of my best work - Fish Dinner
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Command line preprocessing
by stefan k (Curate) on Aug 31, 2001 at 19:03 UTC | |
by suaveant (Parson) on Aug 31, 2001 at 19:36 UTC | |
|
Re: Command line preprocessing
by jmcnamara (Monsignor) on Aug 31, 2001 at 19:13 UTC | |
by suaveant (Parson) on Aug 31, 2001 at 19:15 UTC | |
|
Re: Command line preprocessing
by clemburg (Curate) on Sep 01, 2001 at 18:45 UTC |