am not quite sure, if this is the right site for this question.
[EMAIL PROTECTED] or bug-bash@gnu.org would have been better, but
your mistake is understandable. Cc-ing bug-bash here, since this is
certainly not an announcement.
Where e.g. I can obtain the source code of the commands
Peter Volkov wrote:
> Bob Proulx пишет:
> > The $0 is the name used to invoke the shell. If it starts with a '-'
> > then this is used to instruct the shell that it is a login shell. The
> > second variable $- is the flags set to the shell. The 'i' for
> > interactive should be in there.
>
> Ac
Peter Volkov schrieb:
Better way to check if shell is login is:
$ shopt | grep login_shell
login_shell on
You don't even have to call an external program:
[[ $(shopt -p login_shell) == *-s* ]]
Regards,
Bernd
--
Bernd Eggink
[EMAIL PROTECTED]
http://sudrala.de
В Пнд, 12/05/2008 в 17:02 -0600, Bob Proulx пишет:
> The $0 is the name used to invoke the shell. If it starts with a '-'
> then this is used to instruct the shell that it is a login shell. The
> second variable $- is the flags set to the shell. The 'i' for
> interactive should be in there.
Ac