peter360 wrote:
> In an interative shell, what is the easiest way to tell whether it is a login
> shell or not? Thanks.
In sufficiently modern versions of bash (basically anything newer than
bash-2.05), you can test the setting of the `login_shell' shopt variable.
The shell sets it automatically
In an interative shell, what is the easiest way to tell whether it is a login
shell or not? Thanks.
--
View this message in context:
http://www.nabble.com/login-shell-or-not--tf3211932.html#a8919535
Sent from the Gnu - Bash mailing list archive at Nabble.com.