Date: Tue, 14 Aug 2001 10:33:58 -0700 (PDT) From: Doug Ambrisko <ambrisko@ambrisko.com> To: freebsd-current@FreeBSD.ORG Subject: Re: bash in /usr/local/bin? Message-ID: <200108141733.f7EHXxF09668@ambrisko.com> In-Reply-To: <20010814093236.A77724@dragon.nuxi.com> "from David O'Brien at Aug 14, 2001 09:32:36 am"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108141733.f7EHXxF09668>