in reply to (Windows) verbatim command line arguments inside Perl script
I don't think this question is overly Win specific, when creating a bash script on Linux I'd face the same problem.
Except that (1) bash has sane quoting rules and (2) you don't need to mess with quoting and bash at all because you can use the list form of system() and exec(), and so can pass each argument as intended (see The problem of "the" default shell).
Question: any better solution?
For generating a batch file with tons of insane quoting? Here-documents, with or without interpolation, depending on your needs.
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: (Windows) verbatim command line arguments inside Perl script
by LanX (Saint) on Apr 16, 2021 at 14:38 UTC |