From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12965 invoked from network); 26 Feb 2002 18:27:28 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 26 Feb 2002 18:27:28 -0000 Received: (qmail 7259 invoked by alias); 26 Feb 2002 18:27:15 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4697 Received: (qmail 7245 invoked from network); 26 Feb 2002 18:27:14 -0000 Date: Tue, 26 Feb 2002 10:26:09 -0800 (PST) From: Bart Schaefer Sender: To: Ian Lynagh cc: Subject: Re: Length of %? in prompt In-Reply-To: <20020226180806.GA16191@stu163.keble.ox.ac.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.