From owner-freebsd-current Tue Aug 14 9:33: 3 2001 Delivered-To: freebsd-current@freebsd.org Received: from dragon.nuxi.com (dsl092-013-169.sfo1.dsl.speakeasy.net [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id CE94D37B401 for ; Tue, 14 Aug 2001 09:33:01 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.5/8.11.1) id f7EGWaU77870; Tue, 14 Aug 2001 09:32:36 -0700 (PDT) (envelope-from obrien) Date: Tue, 14 Aug 2001 09:32:36 -0700 From: "David O'Brien" To: Johann Visagie Cc: Garance A Drosihn , freebsd-current@FreeBSD.ORG Subject: Re: bash in /usr/local/bin? Message-ID: <20010814093236.A77724@dragon.nuxi.com> Reply-To: freebsd-current@FreeBSD.ORG References: <3B74D180.D036D629@hway.net> <20010810233635.A12077@xor.obsecurity.org> <3B758BB5.D529AA5F@mindspring.com> <20010814132340.B36548@fling.sanbi.ac.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010814132340.B36548@fling.sanbi.ac.za>; from johann@egenetics.com on Tue, Aug 14, 2001 at 01:23:40PM +0200 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 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 On Tue, Aug 14, 2001 at 01:23:40PM +0200, Johann Visagie wrote: > if ( "$tty" != "" ) then > > (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. :-) I've used "if ($?USER == 0 || $?prompt == 0)" in the past. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message