info-cvs
[Top][All Lists]
Advanced

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

Re: cvs exit status


From: Greg A. Woods
Subject: Re: cvs exit status
Date: Thu, 11 Oct 2001 22:07:50 -0400 (EDT)

[ 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 $?

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

-- 
                                                        Greg A. Woods

+1 416 218-0098      VE3TCP      <address@hidden>     <address@hidden>
Planix, Inc. <address@hidden>;   Secrets of the Weird <address@hidden>



reply via email to

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