From owner-freebsd-questions Thu Jan 18 06:33:58 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA09900 for questions-outgoing; Thu, 18 Jan 1996 06:33:58 -0800 (PST) Received: from fslg8.fsl.noaa.gov (fslg8.fsl.noaa.gov [137.75.131.171]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id GAA09895 for ; Thu, 18 Jan 1996 06:33:57 -0800 (PST) Received: by fslg8.fsl.noaa.gov (5.57/Ultrix3.0-C) id AA18112; Thu, 18 Jan 96 08:33:55 -0600 Received: by emu.fsl.noaa.gov (1.38.193.4/SMI-4.1 (1.38.193.4)) id AA22131; Thu, 18 Jan 1996 07:33:55 -0700 Date: Thu, 18 Jan 1996 07:33:55 -0700 From: kelly@fsl.noaa.gov (Sean Kelly) Message-Id: <9601181433.AA22131@emu.fsl.noaa.gov> To: tony@hornet.netac.co.za Cc: freebsd-questions@freebsd.org In-Reply-To: <199601181351.PAA08194@hornet.netac.co.za> (message from Tony Harverson on Thu, 18 Jan 1996 15:51:43 +0200 (SAT)) Subject: Re: Csh Scripting ? Sender: owner-questions@freebsd.org Precedence: bulk switch ($MANPATH) case /usr/local/*: echo "It's in there" breaksw case /usr/share/*: echo "It's someplace else" breaksw default: echo "Where is it?" breaksw endsw Two notes: 1. Always start your csh scripts with #!/bin/csh -bf 2. Never write csh scripts. I speak from personal experience, but also see Peek, O'Reilly, Loukides: _Unix Power Tools_, page 948: ``C Shell Programming Considered Harmful.'' -- Sean Kelly NOAA Forecast Systems Laboratory, Boulder Colorado USA If you're an archaeologist, I bet it's real embarrassing to put together a skull from a bunch of ancient bone fragments, but then it turns out it's not a skull but just an old dried-out potato. -- Deep Thoughts, by Jack Handey