Date: Thu, 18 Jan 1996 07:33:55 -0700 From: kelly@fsl.noaa.gov (Sean Kelly) To: tony@hornet.netac.co.za Cc: freebsd-questions@freebsd.org Subject: Re: Csh Scripting ? Message-ID: <9601181433.AA22131@emu.fsl.noaa.gov> In-Reply-To: <199601181351.PAA08194@hornet.netac.co.za> (message from Tony Harverson on Thu, 18 Jan 1996 15:51:43 %2B0200 (SAT))
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9601181433.AA22131>