From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42166 invoked by alias); 30 Aug 2016 17:47:16 -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 42155 invoked by uid 89); 30 Aug 2016 17:47:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*f:sk:0294c48, H*i:sk:0294c48, H*F:D*nl X-HELO: lb3-smtp-cloud2.xs4all.net Received: from lb3-smtp-cloud2.xs4all.net (HELO lb3-smtp-cloud2.xs4all.net) (194.109.24.29) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 30 Aug 2016 17:47:06 +0000 Received: from webmail.xs4all.nl ([194.109.20.214]) by smtp-cloud2.xs4all.net with ESMTP id dVn31t00c4d84Ai01Vn3Mc; Tue, 30 Aug 2016 19:47:04 +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 19:47:03 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 30 Aug 2016 20:50:00 -0000 From: Houder To: cygwin@cygwin.com Subject: Re: bash: igncr shell option breaks my PS1 prompt In-Reply-To: <0294c48e-8e96-f554-3e05-6b7771dfb96e@redhat.com> References: <8980687a-967e-88d8-2a94-f485731fafe9@redhat.com> <9940d9b9cd565fbb0d5b395565197dfd@xs4all.nl> <0294c48e-8e96-f554-3e05-6b7771dfb96e@redhat.com> Message-ID: X-Sender: houder@xs4all.nl (TcIR9dcV0KoQaVV2DIFqzA==) User-Agent: XS4ALL Webmail X-IsSubscribed: yes X-SW-Source: 2016-08/txt/msg00611.txt.bz2 On 2016-08-30 15:40, Eric Blake wrote: > On 08/30/2016 02:49 AM, Houder wrote: >> ... uhm ... what about the explanation in the help? >> >> -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? > > Sure, I'll tweak that text, once I can find what about igncr is making > PS1 misbehave on \n. But help would be welcome, if anyone else is also > interested in looking into the cygwin-specific patches and actually > reviewing them. Not only \n ... also on \r: 64-@@ bash --version GNU bash, version 4.3.46(6)-release (x86_64-unknown-cygwin) ... 64-@@ set -o igncr 64-@@ echo $SHELLOPTS braceexpand:emacs:hashall:histexpand:history:igncr:ignoreeof:interactive-comments:monitor 64-@@ PS1='$(date)\n# ' bash: command substitution: line 1: syntax error near unexpected token `)' bash: command substitution: line 1: `date)' # PS1='$(date)\r# ' bash: command substitution: line 1: syntax error near unexpected token `)' bash: command substitution: line 1: `date)' HOWEVER: # PS1='$(date)\012# ' Tue Aug 30 19:36:15 CEST 2016 # PS1='$(date)\012\n# ' # <==== \n! Tue Aug 30 19:36:21 CEST 2016 # PS1='$(date)\012\r# ' # <==== \r! Tue Aug 30 19:36:26 CEST 2016 # Perhaps this may help ... in finding the error. 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