Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Length of %? in prompt
- X-seq: zsh-users 4697
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Ian Lynagh <igloo@xxxxxxxx>
- Subject: Re: Length of %? in prompt
- Date: Tue, 26 Feb 2002 10:26:09 -0800 (PST)
- Cc: <zsh-users@xxxxxxxxxx>
- In-reply-to: <20020226180806.GA16191@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Sender: <schaefer@xxxxxxxxxxxxxxxx>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author