delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/10/22/09:13:06

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: "Kai Henningsen" <kai AT cats DOT ms>
Organization: Spuentrup CTI
To: Kai Henningsen <kai AT cats DOT ms>,
Bernard Dautrevaux <DAUTREVAUX AT microprocess DOT com>,
cygwin AT sourceware DOT cygnus DOT com, earnie_boyd AT yahoo DOT com
Date: Fri, 22 Oct 1999 15:07:53 +0200
MIME-Version: 1.0
Subject: RE: make, bash, or cygwin bug?
X-Confirm-Reading-To: "Kai Henningsen" <kai AT cats DOT ms>
X-pmrqc: 1
In-reply-to: <19991022124202.12748.rocketmail@web109.yahoomail.com>
X-mailer: Pegasus Mail for Win32 (v3.12a)
Message-Id: <E11eeQF-0008EN-01@charlotte.intern.cats.ms>
X-MIME-Autoconverted: from Quoted-printable to 8bit by delorie.com id JAA09001

On 22 Oct 99, at 5:42, Earnie Boyd wrote:

> --- Kai Henningsen <kai AT cats DOT ms> wrote:
> > On 12 Oct 99, at 7:28, Earnie Boyd wrote:
> > 
> > > The problem with this is, if a ^Z|C-z|Ctrl-Z is read then a superfluous
> > > END-OF-FILE is indicated. :-(
> > 
> > This should really not be done, unless it's input from a terminal.
> > Nearly all Win textfiles do NOT end in ^Z anyway. This convention
> > is extremely obsolete.
> 
> I wasn't suggesting ending a text file with a ^Z, I was refering to processing
> binary data which could contain a ^Z causing a premature end of file.  It isn't
> so obsolete that it doesn't cause the fuctions to flag an end-of-file.

Well yes, and I was suggesting that this is a bad idea - maybe 
even an outright bug.  

There are two conditions under which ^Z processing makes sense:  

1. While reading from a terminal (incidentally, the only situation 
where Unix processes ^D)  

2. When handling a text file, *AND* the ^Z in question is the very 
last byte of the file - except that even this case is very rare, and not 
really worth the bother.   

In all other situations, a ^Z should not be associated with EOF. 
(And ^D should only be associated with EOF in case 1.)  



Regards - Kai Henningsen

-- 
http://www.cats.ms
Spuentrup CTI       Fon: +49 251 322311 0  
Windbreede 12       Fax: +49 251 322311 99
D-48157 Münster     Mob: +49 161 3223111
Germany             GSM: +49 171 7755060

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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