Ravi Sir's Cards › AWS
var=x vs export var=x
This comparison card contrasts var=x and export var=x. var=x is described as only this shell. export var=x is described as this shell and child programs. The card pairs var=x with script-internal values, and export var=x with config for apps.
Read card text
What this card says
Scope
var=x
Only this shell.
export var=x
This shell and child programs.
Key points
Not seen by commands you run.
Seen by every child.
Example
n=5
Use when
Script-internal values.
Config for apps.