Subject: Re: getting return values in a csh shell program
To: John Maier <JohnAM@datastorm.com>
From: Scott Reynolds <scottr@plexus.com>
List: netbsd-help
Date: 08/29/1995 13:08:11
On Tue, 29 Aug 1995, John Maier wrote:

> I've poured over the csh man page with no luck.
> any clues?

You're probably not going to like this, but "don't use csh for 
scripting!"  For more details, see

<a href="http://www.ccs.neu.edu/home/django/docs/csh-whynot.html">
      "Csh Programming Considered Harmful"</a>

While exit codes aren't specifically mentioned (at least not that I'm 
aware of), there are a lot of very specific reasons why you might 
consider using something else.

--scott

(BTW, I personally do most of my scripting with sh, primarily for 
portability reasons.)