Suppose that I have this script
export.bash:
#! /usr/bin/env bash
export VAR=\"HELLO, VARIABLE\"
When I execute th
Another workaround that, depends on the case, it could be useful: creating another bash that inherites the exported variable. It is a particular case of @Keith Thompson answer, will all of those drawbacks.
export.bash:
# !/bin/bash
export VAR="HELLO, VARIABLE"
bash
Now:
./export.bash
echo $VAR