I'm trying to figure out how to distinguish a login shell from a non-login shell. If an environment variable is set in ~/.bash_profile (e.g. LOGIN_SHELL=true), but not exported, it should logically only appear in a login shell and not a subshell or non-login shell. But, it doesn't show up in any shell. Anybody wrestled with this problem before? Thanks