Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#201685: zsh: bug in prompt expansion
- X-seq: zsh-workers 20183
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Bug#201685: zsh: bug in prompt expansion
- Date: Fri, 23 Jul 2004 13:33:22 -0400
- Cc: Martin Godisch <martin@xxxxxxxxxx>, 201685-forwarded@xxxxxxxxxxxxxxx
- In-reply-to: <20030717093311.GA9490@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20030717093311.GA9490@xxxxxxxxxxxxxxxxx>
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