SyntaxFix
Write A Post
Hire A Developer
Questions
export a=$(script.sh)
Hope this helps. Note there are no spaces between variable and =. To echo the output
echo $a