[Top][All Lists]
[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: |
Wed, 10 Oct 2001 10:57:50 -0700 |
Under some error conditions, the exit status gets incremented rather than
being set to a fixed value. That means that under those error conditions,
the exit status varies and may sometimes indicate success (due to overflow)
if there are a lot of problems.
So, exit status is not a reliable way to detect problems. You must parse
the CVS standard output and standard error streams for relevant messages.
--- Forwarded mail from address@hidden
I am writing some shell script that invoke
cvs commands: some command appear to return
always "0".
For example
[andrew]$ cvs update no-such-file.fig ; echo $?
cvs server: nothing known about no-such-file.fig
0
My repository is remote (pserver) and my CVS
version is 1.10.8.
There is a method to retrieve the true exit code
or I need to parse the output messages ?
--- End of forwarded message from address@hidden
- file,t, Wim Dausy, 2001/10/10
- cvs exit status, Andrea Montefusco, 2001/10/10
- Re: cvs exit status,
Paul Sander <=
- 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, 2001/10/12
- Re: cvs exit status, Paul Sander, 2001/10/12
Re: file,t, Larry Jones, 2001/10/10