[NTLUG:Discuss] Login Shell

Sameer Khan eb110 at attglobal.net
Fri Dec 21 17:26:29 CST 2001


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




More information about the Discuss mailing list