From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13040 invoked from network); 26 Feb 2002 18:42:41 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 26 Feb 2002 18:42:41 -0000 Received: (qmail 11401 invoked by alias); 26 Feb 2002 18:42:25 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4698 Received: (qmail 11355 invoked from network); 26 Feb 2002 18:42:15 -0000 Date: Tue, 26 Feb 2002 18:42:14 +0000 From: Ian Lynagh To: zsh-users@sunsite.dk Subject: Re: Length of %? in prompt Message-ID: <20020226184213.GA16659@stu163.keble.ox.ac.uk> Mail-Followup-To: zsh-users@sunsite.dk References: <20020226180806.GA16191@stu163.keble.ox.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.25i Sender: Ian Lynagh On Tue, Feb 26, 2002 at 10:26:09AM -0800, Bart Schaefer wrote: > On Tue, 26 Feb 2002, Ian Lynagh wrote: > > > I don't understand this 0 case though - is it a bug? > > > > ian@majestica:~% export PS1="%10>-->0--------%<< " > 123456789 > > There are only a total of 9 characters there, so no truncation is needed. > You need one more hyphen after the zero to get 10 characters. Whooops. One more thing...as the first % escapes the second in "%%1v>-->%?---------%<< " it looks like there is no way to change this value on the fly without recreating the prompt - is this correct? Thanks again Ian