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?

ilkkachu
  • 138,973
Aashish P
  • 133

1 Answers1

5

source it into current shell session.

poige
  • 6,231