Mail Archives: djgpp-workers/2000/11/23/07:26:56
On Thu, 23 Nov 2000, Juan Manuel Guerrero wrote:
> > > -t: Timestamp. With this option the timestamp of a file (modified or not)
> > > will be preserved.
> >
> > I think preserving timestamp should be default. But user may want to turn
> > it off ...
> I agree. Netherless, please note that I have tried to follow Eli Zaretskii's wishlist.
> Preserving timestamp will be a contradiction to that item in the wishlist.
Actually, that's not true. I did want to retain the timestamp
preservation by default, but I wanted an option to be added that will NOT
preserve the timestamp of a file that was changed. Unchanged files
should always have their timestamp preserved, even under the new option.
> The return code of main() is always the return code generated by the last processed file
> as usual.
What I had in mind was simpler than what you implemented: I meant only
two possible status values: 0 (no changes) and 1 (file changed).
With that setup, I thought that in the case of several files, the exit
status should be a logical OR of the statuses for all the files. That
is, if at least one of the files was changed, the exit status will be 1.
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.
In any case, thanks a lot for working on this.
- Raw text -