Re: cvs exit status

2001-10-12 Thread Greg A. Woods
[ 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

RE: cvs exit status

2001-10-12 Thread Jerry Nairn
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, October 12, 2001 9:11 AM [ On Thursday, October 11, 2001 at 20:06:18 (-0700), Paul Sander wrote: ] And your point is what? That it's okay to sometimes let nondeterministic errors go undetected? Sorry, that's not good

Re: cvs exit status

2001-10-12 Thread Paul Sander
--- Forwarded mail from Greg Woods: [ On Thursday, October 11, 2001 at 20:06:18 (-0700), Paul Sander wrote: ] Subject: Re: cvs exit status 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

Re: cvs exit status

2001-10-11 Thread Greg A. Woods
[ On Wednesday, October 10, 2001 at 14:43:14 (-0700), Paul Sander wrote: ] Subject: Re: cvs exit status What happens on a Unix system when the exit status exceeds 127? It overflows. Well, actually it'll depend on a number of factors. I suspect the result is literally undefined from

Re: cvs exit status

2001-10-11 Thread Paul Sander
--- Forwarded mail from Greg Woods: [ On Wednesday, October 10, 2001 at 14:43:14 (-0700), Paul Sander wrote: ] Subject: Re: cvs exit status What happens on a Unix system when the exit status exceeds 127? It overflows. Well, actually it'll depend on a number of factors. I suspect the result

Re: cvs exit status

2001-10-11 Thread Greg A. Woods
[ 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