[ On Thursday, October 11, 2001 at 20:06:18 (-0700), Paul Sander wrote: ]
> Subject: Re: cvs exit status
>
> >     cvs update
> >     if [ $? -ne 0 ] ; then
> >             echo "something bad happened, exit status is $?"
> >     fi
> >     exit $?
> 
> Neither of our scripts is truly useful because both always exit with a 0
> status.  A useful one would pass CVS's status through, or interpret CVS'
> output to produce a reliable status.

Grrr... yeah, I guess that's what I get for coding without testing!  ;-)

        cvs update
        rc=$?
        if [ $rc -ne 0 ] ; then
                echo "something bad happened, exit status is $rc"
        fi
        exit $rc

> And your point is what?  That it's okay to sometimes let nondeterministic
> errors go undetected?  Sorry, that's not good enough.

I think in real life the chance for this overflow having any adverse
affect would be about nil....  You're making a mountain out of a tiny
mole hill.

-- 
                                                        Greg A. Woods

+1 416 218-0098      VE3TCP      <[EMAIL PROTECTED]>     <[EMAIL PROTECTED]>
Planix, Inc. <[EMAIL PROTECTED]>;   Secrets of the Weird <[EMAIL PROTECTED]>

_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to