From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120536 invoked by alias); 30 Aug 2016 07:49:49 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 120526 invoked by uid 89); 30 Aug 2016 07:49:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_40,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=upgraded, endings, rs, D*@ X-HELO: lb3-smtp-cloud3.xs4all.net Received: from lb3-smtp-cloud3.xs4all.net (HELO lb3-smtp-cloud3.xs4all.net) (194.109.24.30) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 30 Aug 2016 07:49:37 +0000 Received: from webmail.xs4all.nl ([194.109.20.204]) by smtp-cloud3.xs4all.net with ESMTP id dKpa1t00W4QBLo201KpaCA; Tue, 30 Aug 2016 09:49:35 +0200 Received: from a83-162-234-136.adsl.xs4all.nl ([83.162.234.136]) by webmail.xs4all.nl with HTTP (HTTP/1.1 POST); Tue, 30 Aug 2016 09:49:34 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 30 Aug 2016 13:16:00 -0000 From: Houder To: cygwin@cygwin.com Subject: Re: bash: igncr shell option breaks my PS1 prompt In-Reply-To: <8980687a-967e-88d8-2a94-f485731fafe9@redhat.com> References: <8980687a-967e-88d8-2a94-f485731fafe9@redhat.com> Message-ID: <9940d9b9cd565fbb0d5b395565197dfd@xs4all.nl> X-Sender: houder@xs4all.nl (zjTJHBG5Ui9pcBdCgvSMCA==) User-Agent: XS4ALL Webmail X-IsSubscribed: yes X-SW-Source: 2016-08/txt/msg00598.txt.bz2 On 2016-08-29 19:43, Eric Blake wrote: > On 08/28/2016 03:20 PM, Gene Pavlovsky wrote: >> Re-posting a reply I got from Henri (aka Houder) houder@xs4all.nl >> His letter follows: >> >> Hi Gene, >> >> Reread your entry to the mailing list ... >> >>> Apparently the latest bash in Cygwin modified the read builtin to use >>> Cygwin-specific shell option igncr to control ignoring \r characters >>> in the input (still not clear if that ignores \r\n sequences, or \r >>> followed by anything else will be also ignored). >> > > If the igncr shell option (currently Cygwin-specific, but Chet says > that > he is amenable to reviewing it for upstream inclusion in 4.5 once 4.4 > is > released any day now) is enabled, then it eats ALL \r, regardless of > context. In other words, it ignores all carriage returns, as per the > name. ... uhm ... what about the explanation in the help? 64-@@ bash --version GNU bash, version 4.3.46(6)-release (x86_64-unknown-cygwin) ... 64-@@ help set set: set [-abefhkmnptuvxBCHP] [-o option-name] [--] [arg ...] Set or unset values of shell options and positional parameters. Change the value of shell attributes and positional parameters, or display the names and values of shell variables. Options: ... -o option-name Set the variable corresponding to option-name: ... igncr on cygwin, ignore \r in line endings ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... this help message should be 'upgraded', should it not? igncr: removes ALL \r's from value (Cygwin) ? Henri -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple