delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/11/23/07:26:56

Date: Thu, 23 Nov 2000 13:32:30 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Juan Manuel Guerrero <ST001906 AT HRZ1 DOT HRZ DOT TU-Darmstadt DOT De>
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: <Pine.SUN.3.91.1001123132058.4200B-100000@is>
MIME-Version: 1.0
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

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019