From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26804 invoked from network); 23 Oct 2005 17:35:01 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 Oct 2005 17:35:01 -0000 Received: (qmail 72230 invoked from network); 23 Oct 2005 17:34:52 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Oct 2005 17:34:52 -0000 Received: (qmail 29929 invoked by alias); 23 Oct 2005 17:34:49 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21908 Received: (qmail 29920 invoked from network); 23 Oct 2005 17:34:49 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 23 Oct 2005 17:34:49 -0000 Received: (qmail 71948 invoked from network); 23 Oct 2005 17:34:49 -0000 Received: from 69-12-150-177.dsl.static.sonic.net (HELO ripple.fruitbat.org) (69.12.150.177) by a.mx.sunsite.dk with SMTP; 23 Oct 2005 17:34:48 -0000 Received: (from daemon@localhost) by ripple.fruitbat.org (8.10.2/8.8.8/PAC-1.3) id j9NHY1308998; Sun, 23 Oct 2005 10:34:01 -0700 Received: from ming.fruitbat.org(192.168.55.2) by ripple.fruitbat.org via smap (V2.1/2.1+anti-relay+anti-spam) id xma008994; Sun, 23 Oct 05 10:33:09 -0700 Received: from gremlin.fruitbat.org (IDENT:202@gremlin.fruitbat.org [192.168.55.4]) by ming.fruitbat.org (8.12.10/8.10.2/PAC-1.6) with ESMTP id j9NHX4bT003018; Sun, 23 Oct 2005 10:33:06 -0700 Date: Sun, 23 Oct 2005 10:33:04 -0700 (PDT) From: "Peter A. Castro" To: Peter Stephenson cc: zsh-workers@sunsite.dk Subject: Re: PATCH: Re: Superfluous CRs trouble completion routines in Cygwin In-Reply-To: Message-ID: References: <87irvzys44.fsf@trews52.bothi.fi> <1051015180240.ZM22900@candle.brasslantern.com> <1051016002252.ZM23495@candle.brasslantern.com> <87y84owe0f.fsf@trews52.bothi.fi> <1051020145129.ZM2623@candle.brasslantern.com> <87d5lzw13l.fsf@trews52.bothi.fi> <1051021154525.ZM7511@candle.brasslantern.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.4 On Fri, 21 Oct 2005, Peter Stephenson wrote: > Bart Schaefer wrote: >> ?? I just don't see any reason why $'\r' would be magical. > > It's a bit magical in Cygwin depending on whether you've told it to > translate ends of lines in the file system. No idea if that's > relevant or not. For the Cygwin port, I'd updated Src/main.c to use a Cygwin specific "feature" to force all read-only files opened by the shell to strip out CRs. This was necessary for reading shell scripts which might have been created with dos carriage-control. Unfortinately, this only applies to read-only files (opened with O_RDONLY), allowing for files opened for write to be influenced by the filesystem settings. Since the console stream is r/w, the above "feature" doesn't apply. Since we are talking about console input, though, there may be a tty setting to control weither CRs are passed to the input stream. I'll see if I can investigate this. > pws -- Peter A. Castro or "Cats are just autistic Dogs" -- Dr. Tony Attwood