Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@sourceware.cygnus.com>
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
From: "Kai Henningsen" <kai@cats.ms>
Organization: Spuentrup CTI
To: Kai Henningsen <kai@cats.ms>,
        Bernard Dautrevaux <DAUTREVAUX@microprocess.com>,
        cygwin@sourceware.cygnus.com, earnie_boyd@yahoo.com
Date: Fri, 22 Oct 1999 15:07:53 +0200
MIME-Version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Subject: RE: make, bash, or cygwin bug?
X-Confirm-Reading-To: "Kai Henningsen" <kai@cats.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>
Content-Transfer-Encoding: 8bit
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@cats.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@sourceware.cygnus.com

