Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
use of `expand suffix' style in _multi_parts
- X-seq: zsh-workers 18241
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: use of `expand suffix' style in _multi_parts
- Date: Fri, 14 Feb 2003 12:58:23 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Completing directories after
tar xvzf file.tar.gz HERE/
with the `expand' style set to include `suffix' is inconvenient as it
appends a space after the slash when completing the directory HERE.
This is obviously wrong --- there is no reason to do anything other than
normal file completion at this point, irrespective of styles.
I can fix this by setting `expand' specially for the tar command, of course.
However, it needs fixing more generally. Unfortunately I can't work out
what's actually wrong. The culprit is _multi_parts where the style is
tested. Is this wrong, is the compadd on the next line (which uses the
options passed rather than the separator passed) warong, is _tar wrong,
in any case what needs changing?
Any views whatsoever are solicited.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070
**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential
and/or privileged material.
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is
prohibited.
If you received this in error, please contact the sender and
delete the material from any computer.
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author