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

Re: Length of %? in prompt



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



Messages sorted by: Reverse Date, Date, Thread, Author