T
Tim
Hi
I'm trying to use a comma a part of my system/exe/open command however
it is interpreted as a delimiter. The actural command I'm trying to
execute is:
p4 obliterate -y @813, 813 # the amperstands and comma are
meaningful to the command.
If I use a single obliterate (e.g. "$p4 obliterate -y \@
$changenumber") the command executes properly. Once I add the comma
and second \@$changenumber it is interpreted as an additional shell
command.
I've tried escaping the comma, double quoting, double escapes, etc.
Does anyone know how I can successfully passed the comma + second
argument to the actual "p4" command. Thanks in advance.
Tim
The perl looks something like this. $changenumber = 813
$cmd="$p4 obliterate -y \@$changenumber, \@$changenumber";
open(OBLITERATE,"$cmd|");
close(OBLITERATE)
sh: line 1: ,@813: command not found
I'm trying to use a comma a part of my system/exe/open command however
it is interpreted as a delimiter. The actural command I'm trying to
execute is:
p4 obliterate -y @813, 813 # the amperstands and comma are
meaningful to the command.
If I use a single obliterate (e.g. "$p4 obliterate -y \@
$changenumber") the command executes properly. Once I add the comma
and second \@$changenumber it is interpreted as an additional shell
command.
I've tried escaping the comma, double quoting, double escapes, etc.
Does anyone know how I can successfully passed the comma + second
argument to the actual "p4" command. Thanks in advance.
Tim
The perl looks something like this. $changenumber = 813
$cmd="$p4 obliterate -y \@$changenumber, \@$changenumber";
open(OBLITERATE,"$cmd|");
close(OBLITERATE)
sh: line 1: ,@813: command not found