in reply to Re^4: Construct command portable way
in thread Construct command portable way
# non-Unix: escape command so that it feels Unix-like my @cmd = $non_unix ? map { (my $x = $_) =~ s/(\\"|")/$1 eq '"' ? '\\"' : '\\\\\\"'/ge; qq("$x"); } @_ : @_;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Construct command portable way
by parv (Parson) on May 08, 2009 at 01:35 UTC |