Kelvin C. Kang writes:
>
> I could not find much about cvs command exit codes in
> the cvs (1.9) manual. For example, when I issued a
> cvs udpate in a shell script, I got an exit code 256.
> I don't what it means. How do I do?
Generally, CVS exits with one of two statuses: EXIT_SUCCESS or
EXIT_FAILURE (these are defined in <stdlib.h> and are the only exit
statuses a portable C program may rely on). On Unix, these generally
map to 0 and 1, repectively. Your 256 looks like the raw return value
from the wait() system call -- if so, it indicates that the command
exited normally with a status of 1. The manual doesn't say much about
it because it isn't very useful -- most CVS commands can partly work and
partly not work, and there isn't any useful way to report that in the
exit status. If the command works completely, it should have an exit
status of zero; if something terrible happens, it should have a non-zero
exit status; otherwise, all bets are off.
-Larry Jones
ANY idiot can be famous. I figure I'm more the LEGENDARY type! -- Calvin