SyntaxFix
Write A Post
Hire A Developer
Questions
I found following program works for me
test1.sh a=xxx test2.sh $a
in test2.sh you use $1 to refer variable a in test1.sh
$1
a
echo $1
The output would be xxx
xxx