[Top][All Lists]
[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: |
Fri, 12 Oct 2001 12:11:28 -0400 (EDT) |
[ 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 <address@hidden> <address@hidden>
Planix, Inc. <address@hidden>; Secrets of the Weird <address@hidden>
- file,t, Wim Dausy, 2001/10/10
- cvs exit status, Andrea Montefusco, 2001/10/10
- Re: cvs exit status, Paul Sander, 2001/10/10
- Re: cvs exit status, Greg A. Woods, 2001/10/10
- Re: cvs exit status, Paul Sander, 2001/10/10
- Re: cvs exit status, Greg A. Woods, 2001/10/11
- Re: cvs exit status, Paul Sander, 2001/10/11
- Re: cvs exit status, Greg A. Woods, 2001/10/11
- Re: cvs exit status, Paul Sander, 2001/10/11
- Re: cvs exit status,
Greg A. Woods <=
- Re: cvs exit status, Paul Sander, 2001/10/12
Re: file,t, Larry Jones, 2001/10/10