info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cvs exit status


From: Paul Sander
Subject: Re: cvs exit status
Date: Thu, 11 Oct 2001 20:06:18 -0700

>--- Forwarded mail from address@hidden

>[ On Thursday, October 11, 2001 at 15:48:53 (-0700), Paul Sander wrote: ]
>> Subject: Re: cvs exit status
>>
>> # Overflow occurs here; an exit status less than 258 indicates an overflow.
>> cvs update
>> echo "exit status is $?"

>My code would say:

>       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.

>The chances of that failing are one in 127 in the very worst of cases.

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

>--- End of forwarded message from address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]