| 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=RGKWi6wVUj1WO7fYlRO+ | |
| EpOaN20hKXdnymZu6whxvkpFaYqQac7qfc5h8Xh7SWoi0dm/X7mcwfgVeaw4vtlB | |
| TNCEA2Il5poOz0EWZREw6cxyb+I6l9pz1s67gCUVrXZnRfm5SzhHD/D0T6Nlh8Nr | |
| gz1UY9bimNjQevbBttwwpm4= | |
| 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=V8HxoNCk/UxUdxlZGvGn4i6Fxt | |
| A=; b=IQWskqOKUJQL1JPeTel4hWSXjS5dw9raHbxUj8Fn5JPo3ajOmWwqwrX1HB | |
| oG5Kg/e9WG8ApaK4k6ZKnXmuChFNbWq2OH0SXHmlOttUTzlj1kVlcX2C2duaZUWJ | |
| juEihSNZioWw4PS4absqsCk4vdQvP8/95Cy5699cHwJz28/kc= | |
| 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=0.0 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=No, nellis, Nellis, back-ticks |
| X-HELO: | lb1-smtp-cloud6.xs4all.net |
| MIME-Version: | 1.0 |
| Date: | Tue, 30 Aug 2016 16:41:12 +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: | <0D835E9B9CD07F40A48423F80D3B5A704BB92AEC@USA7109MB022.na.xerox.net> |
| References: | <181446230 DOT 20160830061415 AT yandex DOT ru> <0D835E9B9CD07F40A48423F80D3B5A704BB92AEC AT USA7109MB022 DOT na DOT xerox DOT net> |
| Message-ID: | <a364f8004a5c53564f9ceab0715bd7cb@xs4all.nl> |
| X-Sender: | houder AT xs4all DOT nl (7s3pquIgNVzyErLT974aXg==) |
| User-Agent: | XS4ALL Webmail |
| X-IsSubscribed: | yes |
On 2016-08-30 15:34, Nellis, Kenneth wrote: [snip] > But, get this: > > $ PS1='$(date)\n\$ ' > Tue Aug 30 09:30:37 EDT 2016 > $ set -o igncr > -bash: command substitution: line 1: syntax error near unexpected token > `)' > -bash: command substitution: line 1: `date)' > > $ PS1='`date`\n\$ ' > Tue Aug 30 09:31:01 EDT 2016 > $ > > So, the $() syntax is part of the mix. Use back-ticks as a workaround. Or: replacing \n by \012 also does the trick. (No! I do not know why!) 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 |