I think you're misunderstanding what export does -- it doesn't "save" the variable at all, it just puts it in that shell process's environment, so it'll be inherited by programs that that shell launches. It has no affect on other running shells, programs launched other ways, and isn't permanent past when you exit that particular shell process.