From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9831 invoked from network); 16 Jul 2005 16:06:51 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 16 Jul 2005 16:06:51 -0000 Received: (qmail 45734 invoked from network); 16 Jul 2005 16:06:45 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 16 Jul 2005 16:06:45 -0000 Received: (qmail 10900 invoked by alias); 16 Jul 2005 16:06:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21481 Received: (qmail 10890 invoked from network); 16 Jul 2005 16:06:42 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 16 Jul 2005 16:06:42 -0000 Received: (qmail 45380 invoked from network); 16 Jul 2005 16:06:42 -0000 Received: from vms046pub.verizon.net (206.46.252.46) by a.mx.sunsite.dk with SMTP; 16 Jul 2005 16:06:37 -0000 Received: from candle.brasslantern.com ([71.116.88.149]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IJQ00G89A30D410@vms046.mailsrvcs.net> for zsh-workers@sunsite.dk; Sat, 16 Jul 2005 11:06:37 -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 j6GG6ZMT031051 for ; Sat, 16 Jul 2005 09:06:35 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j6GG6ZBE031050 for zsh-workers@sunsite.dk; Sat, 16 Jul 2005 09:06:35 -0700 Date: Sat, 16 Jul 2005 16:06:34 +0000 From: Bart Schaefer Subject: Re: PATCH: PROMPT_SP In-reply-to: <20050715175551.GA29713@blorf.net> To: zsh-workers@sunsite.dk Message-id: <1050716160634.ZM31049@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <20050714182506.GB11296@blorf.net> <20050715175551.GA29713@blorf.net> Comments: In reply to Wayne Davison "Re: PATCH: PROMPT_SP" (Jul 15, 10:55am) X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 On Jul 15, 10:55am, Wayne Davison wrote: } Subject: Re: PATCH: PROMPT_SP } } feel free to comment on my implementation and suggest any improvements } you might think of. As I expected, prompt_bart_setup is messed up by this and will have to be adjusted again. This is actually a bit annoying, because it's not possible to test [[ -o promptsp ]] in an older version without causing an error (as opposed to a nonzero status) so it's ugly to deal with in a version-independent way. I ended up with eval '[[ -o promptsp ]] 2>/dev/null' Otherwise it seems to be working nicely. An obvious documentation error: PROMPT_CR (+V) Print a carriage return just before printing a prompt [...] PROMPT_SP (+V) Attempt to preserve a partial line [...] The +V command-line option doesn't really control both PROMPT_CR and PROMPT_SP, does it?