issue with variable expansion (can't use double quotes)
by Reprovo from LinuxQuestions.org on (#5AGN4)
Hi. Have an issue with one script providing a path which requires variable expansion to another script (which i cannot edit or change)
The second script has a path of ${exampleScript2}/${exampleScript1}
script1 is providing the path after the forward slash but ${exampleScript2} is enclosed in single quotes. I cannot add double quotes to ${exampleScript1}.
it ends up as '/etc/example'"/script/${variable}"
apologies if this is not explained clearly.


The second script has a path of ${exampleScript2}/${exampleScript1}
script1 is providing the path after the forward slash but ${exampleScript2} is enclosed in single quotes. I cannot add double quotes to ${exampleScript1}.
it ends up as '/etc/example'"/script/${variable}"
apologies if this is not explained clearly.