A Perl system call must send the following string to the UnixShell
:
'"XYZ"'
In my Perl script I have used the following command:
system("cleartool mkattr -replace ATTRIBUTE '"$attribute"' lbtype:$label");
Everything is well passed to the Shell Unix
, except both uses of the quote character:
'
Indeed,
cleartool mkattr -replace ATTRIBUTE
The above command is passed as it is exactly what I want. The Perl variables $attribute and $label are well interpreted. But I don't know what to do to obtain exactly:
'"XYZ"'
Here XYZ
is the value of the Perl variable $attribute
OS is AIX (Unix)
and Shell
is ksh
. cleartool is the command line interface of Clearcase but no Clearcase skill is necessary to fix my problem.