At 1:23 PM +0200 8/14/01, Johann Visagie wrote:
>You may also want to restrict it so that only interactive login sessions
>cause bash to be invoked.  To summarise:
>
>   if ( "$tty" != "" ) then
>     if ( -x /usr/local/bin/bash ) then
>       setenv SHELL /usr/local/bin/bash
>       exec /usr/local/bin/bash -login
>     endif
>   endif
>
>(There may be a more elegant way to check for shell interactivity in csh,
>and if there is I'd like to know about it, please.  :-)

If you check in the standard (default) .cshrc, it has the lines:

if ($?prompt) then
         # An interactive shell -- set some stuff up
         set filec
         set history = 100
         set savehist = 100
         set mail = (/var/mail/$USER)
endif

So I suspect that's the check I should use in .login

-- 
Garance Alistair Drosehn            =   [EMAIL PROTECTED]
Senior Systems Programmer           or  [EMAIL PROTECTED]
Rensselaer Polytechnic Institute    or  [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to