PREV INDEX NEXT

Author: Unknown
Subject: export command
Date: Tuesday, 01 Dec 2020, 23:57:52

Why doesn't an exported variable's value persist beyond one line? 

eg (1)$ export A=B; printenv A

Prints out "B" as expected, but 

   (2)$ export A=B
   (3)$ printenv A

Does not output anything. My understanding is that 1a of the Notes refers to locals, and this behavior is not consistent with bash, so I don't understand why this is happening.
PREV INDEX NEXT