Mail Archives: djgpp-workers/2000/11/27/01:47:18
On Sun, 26 Nov 2000, DJ Delorie wrote:
> 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.
I think the final version committed to the CVS works like this, for
compatibility with previous versions (since `dtou' is used in
Makefile's of some ported packages).
What I suggested was meant to allow use of `dtou' as a kind of
file-type detection program. However, the fact that `dtou' can work
on many files makes it difficult to implement this in a reasonable
way.
- Raw text -