Date: Thu, 23 Nov 2000 13:32:30 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Juan Manuel Guerrero cc: djgpp-workers AT delorie DOT com Subject: Re: New patch for dtou.c In-Reply-To: <5A4F5D3251@HRZ1.hrz.tu-darmstadt.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.