Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Length of %? in prompt



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