Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!rochester!bbn!diamond.bbn.com!mlandau From: mlandau@bbn.com (Matt Landau) Newsgroups: comp.unix.questions Subject: Re: Environment variables Message-ID: <8172@slate.BBN.COM> Date: Wed, 26-Aug-87 11:14:31 EDT Article-I.D.: slate.8172 Posted: Wed Aug 26 11:14:31 1987 Date-Received: Fri, 28-Aug-87 04:36:55 EDT References: <626@unmvax.unm.edu> <2876@phri.UUCP> Reply-To: mlandau@bbn.com (Matt Landau) Organization: BBN Laboratories Incorporated, Cambridge, MA Lines: 16 Summary: $?VARIABLE 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? Well, under 4BSD and Sun csh, this works: if ($?VAR) then echo "VAR is set" else echo "VAR is not set" endif I would assume it works the same way in SysV, but I don't have one handy to check. -- Matt Landau A rock feels no pain... mlandau@bbn.com ...and an island never cries