2

Let's say I have a script:

#!/bin/bash
echo "$1"
if [[ ! $1 ]]; then
    echo "True"
fi
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?

5

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.