From owner-freebsd-current Tue Aug 14 9:35:37 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id BEF3237B40C for ; Tue, 14 Aug 2001 09:35:33 -0700 (PDT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.11.3/8.11.3) with ESMTP id f7EGZPK55750; Tue, 14 Aug 2001 12:35:25 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20010814132340.B36548@fling.sanbi.ac.za> References: <3B74D180.D036D629@hway.net> <20010810233635.A12077@xor.obsecurity.org> <3B758BB5.D529AA5F@mindspring.com> <20010814132340.B36548@fling.sanbi.ac.za> Date: Tue, 14 Aug 2001 12:35:23 -0400 To: Johann Visagie From: Garance A Drosihn Subject: Re: bash in /usr/local/bin? Cc: freebsd-current@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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