From owner-freebsd-current Tue Aug 14 10:34:35 2001 Delivered-To: freebsd-current@freebsd.org Received: from ambrisko.com (adsl-64-174-51-42.dsl.snfc21.pacbell.net [64.174.51.42]) by hub.freebsd.org (Postfix) with ESMTP id B385137B408 for ; Tue, 14 Aug 2001 10:34:31 -0700 (PDT) (envelope-from ambrisko@ambrisko.com) Received: (from ambrisko@localhost) by ambrisko.com (8.11.3/8.11.3) id f7EHXxF09668 for freebsd-current@FreeBSD.ORG; Tue, 14 Aug 2001 10:33:59 -0700 (PDT) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200108141733.f7EHXxF09668@ambrisko.com> Subject: Re: bash in /usr/local/bin? In-Reply-To: <20010814093236.A77724@dragon.nuxi.com> "from David O'Brien at Aug 14, 2001 09:32:36 am" To: freebsd-current@FreeBSD.ORG Date: Tue, 14 Aug 2001 10:33:58 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII 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 David O'Brien writes: | 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. I've used 'tty' to tell me for more info 'man tty'. a21p% echo hello | tty && echo hi not a tty a21p% tty && echo hi /dev/ttypg hi a21p% Don't know if this has been mentioned since I generally ignore things about bash. Doug A. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message