Posts: 37,098
Threads: 2,599
Joined: May 2025
Reputation:
0
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.
Posts: 9,490
Threads: 407
Joined: May 2025
Reputation:
1
hmmm... I'm not sure I have enough to work with here.
If your script is passing multiple strings instead of single strings as desired can you join them? Or is it a variable number of strings that are getting returned? Maybe the strings returned can give you a clue about what your script is doing and how it's misbehaving?
g=
Posts: 1,354
Threads: 231
Joined: Mar 2022
Reputation:
0
I've run into this issue before....
I believe, stick double quotes around the backticks...otherwise I'll get you my real solution tomorrow morning!
Posts: 37,098
Threads: 2,599
Joined: May 2025
Reputation:
0
i guess i'm waiting for your real solution, microchip.
i've tried a variety of quote combos without luck...
Posts: 15,224
Threads: 204
Joined: Jan 2023
Reputation:
0
Frammicate the gizzinta and adjust the widget as needed.