Article 5AGN4 issue with variable expansion (can't use double quotes)

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.latest?d=yIl2AUoC8zA latest?i=R4zL1TVjR3w:hAebw-BBOKs:F7zBnMy latest?i=R4zL1TVjR3w:hAebw-BBOKs:V_sGLiP latest?d=qj6IDK7rITs latest?i=R4zL1TVjR3w:hAebw-BBOKs:gIN9vFwR4zL1TVjR3w
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments