Ravi Sir's Cards › AWS
source vs ./script
This comparison card contrasts source and./script. source: Same shell./script is described as new child shell. The card pairs source with libraries, env files, and./script with separate tools.
Read card text
What this card says
Load
source
Same shell.
./script
New child shell.
Key points
Functions and vars stay.
Nothing comes back.
Example
source lib.sh
Use when
Libraries, env files.
Separate tools.