From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 42320 invoked by alias); 30 Aug 2016 03:21:27 -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 41907 invoked by uid 89); 30 Aug 2016 03:20:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.0 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*F:D*yandex.ru, ancient, msk, MSK X-HELO: forward3p.cmail.yandex.net Received: from forward3p.cmail.yandex.net (HELO forward3p.cmail.yandex.net) (77.88.31.18) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 30 Aug 2016 03:20:08 +0000 Received: from smtp2j.mail.yandex.net (smtp2j.mail.yandex.net [95.108.131.191]) by forward3p.cmail.yandex.net (Yandex) with ESMTP id 3F8C920BCC; Tue, 30 Aug 2016 06:20:05 +0300 (MSK) Received: from smtp2j.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2j.mail.yandex.net (Yandex) with ESMTP id 10ED41060E64; Tue, 30 Aug 2016 06:20:03 +0300 (MSK) Received: by smtp2j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id TVEQrewr8O-K3o0W7Yr; Tue, 30 Aug 2016 06:20:03 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Authentication-Results: smtp2j.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0,1 0 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Tue, 30 Aug 2016 03:14:16 -0000 Date: Tue, 30 Aug 2016 07:49:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <181446230.20160830061415@yandex.ru> To: Eric Blake , 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-08/txt/msg00594.txt.bz2 Greetings, Eric Blake! > But it seems like \n handling in PS1 is independent of any change in > handing in the 'read' builtin. As evidence, I ran the following test > using the older bash-4.3.42-4 build: > $ bash-4.3.42-4 > $ set -o igncr > $ PS1='$(date)\n# ' > bash: command substitution: line 1: syntax error near unexpected token ')' > bash: command substitution: line 1: `date)' That's interesting. I've just tried it on Linux. $ PS1='$(date)\n\$ ' Tue Aug 30 06:10:48 MSK 2016 $ bash --version GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu) (No idea why they ship this ancient version...) And on Cygwin $ PS1='$(date)\n\$ ' Tue Aug 30 06:12:38 MSK 2016 $ bash --version GNU bash, version 4.3.46(6)-release (x86_64-unknown-cygwin) $ set -o igncr -bash: command substitution: line 1: syntax error near unexpected token `)' -bash: command substitution: line 1: `date)' > $ exit > So you have uncovered a latent problem, unrelated to the recent igncr > fixes, but which is indeed tied to the overall igncr patches, and which > you had no reason to trip over until the igncr change to 'read' changed > your desire to use igncr. Seems like it is related, at least in some way. -- With best regards, Andrey Repin Tuesday, August 30, 2016 06:09:31 Sorry for my terrible english... -- 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