Let's say I have a script:

echo "$1"
if [[ ! $1 ]]; then
    echo "True"
export ABC="/home/aashish"

ABC is not available after the execution of this script. How can I make that variable persist after the execution as well?


source it into current shell session.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.