PREV INDEX NEXT

Author: Unknown
Subject: Clarification about previous answer
Date: Wednesday, 02 Dec 2020, 15:45:59

You said that "Export, on the other hand, is processed in the parent shell (similar to cd), so it adds an environment variable to the parent bashLT"

But when I run something on the staff solution like 
(1) export var=val
(2) printenv var

there is no output for printenv var. My understanding of your previous comment might be incorrect but can you clarify this behavior? Does this mean that you exit() in the parent process? What is the lifetime of environmental variables?
PREV INDEX NEXT