From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28037 invoked by alias); 5 Dec 2010 21:41:28 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28482 Received: (qmail 1184 invoked from network); 5 Dec 2010 21:41:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <101205134109.ZM502@torch.brasslantern.com> Date: Sun, 05 Dec 2010 13:41:09 -0800 In-reply-to: Comments: In reply to Mikael Magnusson "PROMPT_SP and empty PROMPT_EOL_MARK" (Dec 5, 10:10pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh workers Subject: Re: PROMPT_SP and empty PROMPT_EOL_MARK MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Dec 5, 10:10pm, Mikael Magnusson wrote: } } If not set or empty, the default behavior } is equivalent to the value `%B%S%#%s%b'. } } What is the rationale for disallowing an empty indicator? Probably so that you can declare it as a local without having to explicitly unset it afterwards. You can get the effect you want with something like PROMPT_EOL_MARK='%{%}' or PROMPT_EOL_MARK='%<<' In fact because prompt expansion is applied to PROMPT_EOL_MARK *before* the precmd functions are called, there are all sorts of interesting side effects I hadn't previously considered ...