Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!columbia!amsterdam!dupuy From: dupuy@amsterdam.columbia.edu (Alexander Dupuy) Newsgroups: comp.unix.questions Subject: Re: Environment variables Message-ID: <4942@columbia.edu> Date: Tue, 25-Aug-87 19:59:10 EDT Article-I.D.: columbia.4942 Posted: Tue Aug 25 19:59:10 1987 Date-Received: Thu, 27-Aug-87 03:56:39 EDT References: <626@unmvax.unm.edu> <2876@phri.UUCP> Sender: nobody@columbia.edu Reply-To: dupuy@amsterdam.columbia.edu (Alexander Dupuy) Followup-To: comp.unix.questions Organization: Columbia University Computer Science Dept. Lines: 23 In article <2876@phri.UUCP> roy@phri.UUCP (Roy Smith) writes: >In <626@unmvax.unm.edu> mike@turing.UNM.EDU.UUCP (Michael I. Bushnell) writes: >> How can I determine if an environment variable is set using csh? >> (I.e., in a script) > > After a bit of experimentation, I came up with the following > [c-shell script using `printenv` deleted] maybe this is a stupid answer, but have you tried $?VARIABLE ? % echo $?TERM 1 % echo $?FOO 0 I know I have a ( hacked) version of the 4.3 csh, but it does work for me. @alex --- arpanet: dupuy@columbia.edu uucp: ...!seismo!columbia!dupuy