Mail Archives: djgpp-workers/2000/11/26/16:52:02
> I didn't say that in my original message, but for compatibility reasons
> (old Makefiles) it might be a good idea to return non-zero exit status
> only under a special option, and retain the current behavior if that
> option was not given.
dtou should return zero if it was successful. "Successful" means it
changed the files it should have, and left the files it should have.
A non-success exit (nonzero) should be restricted to *unexpected*
problems, such as file not found, disk full, access denied. read-only
media, etc.
My preference is that the exit code should reflect the number of
problems encountered, not the type. If you wish a special option to
make the exit code reflect the conversions done, that's OK, but it
shouldn't be the default, no matter how many files are listed on the
command line.
- Raw text -