Thank you for your detailed information.
I think that bash does nothing with the environment variable A1 in the login scripts, but su - or sudo itself does unset it.
When I execute bash, bash -l, or su username command, the environment variable A1 is not unset from starting /etc/profile to...