I've got a .sh script that uses various functions within it. It looks something like this:
x="text.sh $a"
function run
(
a=1
exec $x
)
run
When I run the script, the script complains that $a is empty. Why does the value of '1' not get passed when $x is executed???
x="text.sh $a"
function run
(
a=1
exec $x
)
run
When I run the script, the script complains that $a is empty. Why does the value of '1' not get passed when $x is executed???