Concept Flow - Environment variables vs local variables
Start Script
Set local variable
Set environment variable (export)
Call child process
Child sees environment variable
Child does NOT see local variable
End Script
This flow shows how local variables exist only in the current script, while environment variables (exported) are passed to child processes.