Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#201685: zsh: bug in prompt expansion
- X-seq: zsh-workers 20186
- From: Peter Stephenson <pws@xxxxxxx>
- To: Clint Adams <schizo@xxxxxxxxxx>
- Subject: Re: Bug#201685: zsh: bug in prompt expansion
- Date: Fri, 23 Jul 2004 19:02:56 +0100
- Cc: zsh-workers@xxxxxxxxxx, Martin Godisch <martin@xxxxxxxxxx>, 201685-forwarded@xxxxxxxxxxxxxxx
- In-reply-to: "Clint Adams"'s message of "Fri, 23 Jul 2004 13:33:22 EDT." <20040723173322.GA9988@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Clint Adams wrote:
> 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
It does have at least one element; the problem is that /usr is still
regarded as a single element.
It could be fixed by both redocumenting the count as distance from the
root directory in terms of path elements (rather than absolutely, which
is a bigger change), and changing the value for /. I don't know which
of the two more people would find more useful.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author