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

Re: Bug#201685: zsh: bug in prompt expansion



I don't remember if this was discussed before.

On Thu, Jul 17, 2003 at 11:33:11AM +0200, Martin Godisch wrote:
> 
> After PROMPT='%~%1(C./.) ' the full prompt should be `/ ' in the root
> directory, because the absolute path `/' does not have at least one element.
> 
> PROMPT='%~%3(C./.) '
> / cd var              
> /var cd lib
> /var/lib cd dpkg
> /var/lib/dpkg/ cd /
> / PROMPT='%~%2(C./.) '
> / cd var
> /var cd lib
> /var/lib/ cd dpkg
> /var/lib/dpkg/ cd /
> / PROMPT='%~%1(C./.) '
> // cd var
> /var/ cd lib
> /var/lib/ cd dpkg
> /var/lib/dpkg/ cd /
> // 



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