07-11-2010, 05:35 AM
i'm writing a script which attempts to assemble an argument for another script. however, its not seeing the argument as a single string but as multiple strings and therefore multiple arguments.
filePath=\"`pwd`/${files[$index]}\"
/test.sh $filePath
if i copy the output of that line and execute it from the command line it works perfectly fine because its read as a single argument.
filePath=\"`pwd`/${files[$index]}\"
/test.sh $filePath
if i copy the output of that line and execute it from the command line it works perfectly fine because its read as a single argument.