I have var.sh
name="John"
age="29"
I also have main.sh
eval "var.sh"
echo "My name is $name"
When I run, I kept getting
⚡️ Desktop bash main.sh
main.sh: line 1: var.sh: command not found
My name is
What is the best practice to import a local bash file into another bash file ?
Is there way that will work on Mac OS X, Linux and Windows ?