Date: Tue, 14 Aug 2001 12:35:23 -0400 From: Garance A Drosihn <drosih@rpi.edu> To: Johann Visagie <johann@egenetics.com> Cc: freebsd-current@FreeBSD.ORG Subject: Re: bash in /usr/local/bin? Message-ID: <p05101001b79f029e30b1@[128.113.24.47]> In-Reply-To: <20010814132340.B36548@fling.sanbi.ac.za> References: <3B74D180.D036D629@hway.net> <20010810233635.A12077@xor.obsecurity.org> <p0510100fb79b2a85857c@[128.113.24.47]> <3B758BB5.D529AA5F@mindspring.com> <20010814132340.B36548@fling.sanbi.ac.za>
next in thread | previous in thread | raw e-mail | index | archive | help
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 = gad@eclipse.acs.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p05101001b79f029e30b1>