delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:mime-version:content-type | |
:content-transfer-encoding:date:from:to:subject:in-reply-to | |
:references:message-id; q=dns; s=default; b=KmapKBrc4UNOceNmO9++ | |
bX4wbpXQ7xVL5YAJjolbRCIy+dOhTuMf/V/GwZVStNwaWPl9KILjmVzBFimpKqf6 | |
qF/LT69+GKGIunWwnN4sF1lPguXhOZCZSFndZlu01ZAzzBq0768N5/6ERG+ODud+ | |
u1sx7NqWoVFUl2EU+pWBy24= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:mime-version:content-type | |
:content-transfer-encoding:date:from:to:subject:in-reply-to | |
:references:message-id; s=default; bh=0DqHEHzpA+xyTeQYt5l3m6Jtx0 | |
M=; b=QXXJEx3dmCuOfCFB5DLRxSShFLPf0ifQODcQbyxti1WhIHbkx0XH3xSbrp | |
XQ4lP76jn9r+0XhfSUZvuHfYDmdMFqZvQwhy/Jyh7dYBk/zt/Boc6NYwzBcrBXfD | |
qKnK5mfscxiA6I6lCRl9CWs1SKYF3ooqrfjatgjUDaYQsPqgQ= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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 |
MIME-Version: | 1.0 |
Date: | Tue, 30 Aug 2016 19:47:03 +0200 |
From: | Houder <houder AT xs4all DOT nl> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: bash: igncr shell option breaks my PS1 prompt |
In-Reply-To: | <0294c48e-8e96-f554-3e05-6b7771dfb96e@redhat.com> |
References: | <CAPTiy3PE0gZ-hpvQbxVkfaZfxtppDx7RG85WtuigpnL54WZbDA AT mail DOT gmail DOT com> <CAPTiy3N-n5krtWcZuK8-pBQE_efzroS6rizknHqU2tE+BYaMQQ AT mail DOT gmail DOT com> <8980687a-967e-88d8-2a94-f485731fafe9 AT redhat DOT com> <9940d9b9cd565fbb0d5b395565197dfd AT xs4all DOT nl> <0294c48e-8e96-f554-3e05-6b7771dfb96e AT redhat DOT com> |
Message-ID: | <c153e423b803ace79e1e8ec999883488@xs4all.nl> |
X-Sender: | houder AT xs4all DOT nl (TcIR9dcV0KoQaVV2DIFqzA==) |
User-Agent: | XS4ALL Webmail |
X-IsSubscribed: | yes |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |