Suppose that I have this script:
export.bash:
#! /usr/bin/env bash
export VAR="HELLO, VARIABLE"
When I execute the script and try to access to the $VAR
, I don’t get any value!
echo $VAR
Is there a way to access the $VAR
by just executing export.bash without sourcing it?