From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23634 invoked from network); 21 Sep 2005 02:11:36 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 21 Sep 2005 02:11:36 -0000 Received: (qmail 94332 invoked from network); 21 Sep 2005 02:11:30 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 21 Sep 2005 02:11:30 -0000 Received: (qmail 1167 invoked by alias); 21 Sep 2005 02:11:27 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21741 Received: (qmail 1158 invoked from network); 21 Sep 2005 02:11:26 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 21 Sep 2005 02:11:26 -0000 Received: (qmail 94029 invoked from network); 21 Sep 2005 02:11:26 -0000 Received: from vms046pub.verizon.net (206.46.252.46) by a.mx.sunsite.dk with SMTP; 21 Sep 2005 02:11:24 -0000 Received: from candle.brasslantern.com ([71.116.81.225]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IN500JIWA2OW891@vms046.mailsrvcs.net> for zsh-workers@sunsite.dk; Tue, 20 Sep 2005 21:11:13 -0500 (CDT) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j8L2BBer009894 for ; Tue, 20 Sep 2005 19:11:11 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j8L2BBfA009893 for zsh-workers@sunsite.dk; Tue, 20 Sep 2005 19:11:11 -0700 Date: Wed, 21 Sep 2005 02:11:10 +0000 From: Bart Schaefer Subject: Re: Prompt oddity when running as "sh" (4.3.0-dev) In-reply-to: <20050920163045.GE28681@blorf.net> To: zsh-workers@sunsite.dk Message-id: <1050921021110.ZM9892@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <1050920160050.ZM9532@candle.brasslantern.com> <20050920163045.GE28681@blorf.net> Comments: In reply to Wayne Davison "Re: Prompt oddity when running as "sh" (4.3.0-dev)" (Sep 20, 9:30am) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 On Sep 20, 9:30am, Wayne Davison wrote: } } The attached patch makes sure that PROMPT_PERCENT is enabled when the } PROMPT_SP code wants to expand its end-of-line string. [...] } + str = promptexpand("%B%S#%s%b", 0, NULL, NULL); Shouldn't that be "%B%S%#%s%b" ? (That was my original suggestion, in any event.) ^^ } I also wonder if we want PROMPT_SP (and even PROMPT_CR) set when running } as "sh". They are both currently enabled by default in all modes. I'd be OK with disabling them in "sh" emulation, but let's hear some more opinions.