From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11808 invoked from network); 29 Feb 2000 17:32:39 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 29 Feb 2000 17:32:39 -0000 Received: (qmail 28757 invoked by alias); 29 Feb 2000 17:32:31 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9940 Received: (qmail 28737 invoked from network); 29 Feb 2000 17:32:30 -0000 From: "Bart Schaefer" Message-Id: <1000229173223.ZM29798@candle.brasslantern.com> Date: Tue, 29 Feb 2000 17:32:23 +0000 In-Reply-To: Comments: In reply to Tanaka Akira "%<< and %{%}" (Mar 1, 12:26am) References: X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Re: %<< and %{%} MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Mar 1, 12:26am, Tanaka Akira wrote: } Subject: %<< and %{%} } } I heard that the combination of %<< and %{%} in prompt doesn't work well. } } Z(2):akr@is27e1u11% Src/zsh -f } is27e1u11% cd /usr/local/bin } is27e1u11% PS1=$'[%20<..<%/]' } [/usr/local/bin]PS1=$'[%20<..<%/]%{\e[33m%}' } [../local/bin] } } Hm. The string in %{..%} is affected to truncation. It is wrong. Maybe, but (I think) so is your usage of %<..<, since zsh-workers/4601. I believe you want something like PS1=$'[%20<..<%/%<<]%{\e[33m%}' There does seem to be a bug with handling of turncations inside the %() conditional construct; if the truncation is in the "true" branch, then the false branch and the trailing `)' are left as part of the prompt. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com