Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: "Kai Henningsen" Organization: Spuentrup CTI To: Kai Henningsen , Bernard Dautrevaux , 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 Content-type: text/plain; charset=ISO-8859-1 Subject: RE: make, bash, or cygwin bug? X-Confirm-Reading-To: "Kai Henningsen" X-pmrqc: 1 In-reply-to: <19991022124202.12748.rocketmail@web109.yahoomail.com> X-mailer: Pegasus Mail for Win32 (v3.12a) Message-Id: 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 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