A local variable exists only within a specific shell. Therefore, when you define a local variable, it's only available in your current shell. It doesn't propagate or persist to a new shell session unless you export it as a global variable.
A local variable exists only within a specific shell. Therefore, when you define a local variable, it's only available in your current shell. It doesn't propagate or persist to a new shell session unless you export it as a global variable.