Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
saturday night shell scripting question
#1
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.
Reply


Messages In This Thread
saturday night shell scripting question - by mattkime - 07-11-2010, 05:35 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)