in reply to passing parameters from shell script to perl program doesn't preserve spaces [solved]
This works, at least in bash:
$ args=(one "two three" four "five six") $ perl -e 'for (@ARGV) {print "$_\n"}' "${args[@]}" one two three four five six
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: passing parameters from shell script to perl program doesn't preserve spaces
by peterbk (Initiate) on Dec 21, 2016 at 09:34 UTC | |
by Discipulus (Canon) on Dec 21, 2016 at 10:23 UTC |