Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _sep_parts
- X-seq: zsh-workers 9755
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: PATCH: _sep_parts
- Date: Tue, 15 Feb 2000 21:58:59 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
There seems to be a typo in _sep_parts, which I was trying out for the
guide.
By the way, there also seems to be a problem if one of the separators
contains a character that needs quoting: completion quotes it, but
_sep_parts doesn't recognise the quoted string as being the separator when
performing later completions --- there's no use quoting it by hand, since
it gets requoted. Maybe there's an easy workaround, else judicious use of
-Q may be required, which _sep_parts doesn't accept. Not that I have an
application for this, anyway.
Index: Completion/Core/_sep_parts
===================================================================
RCS file: /home/pws/CVSROOT/projects/zsh/Completion/Core/_sep_parts,v
retrieving revision 1.5
diff -u -r1.5 _sep_parts
--- Completion/Core/_sep_parts 2000/02/11 19:07:59 1.5
+++ Completion/Core/_sep_parts 2000/02/15 18:47:37
@@ -23,7 +23,7 @@
# Get the options.
zparseopts -D -a opts \
- 'J:=group' 'V=:group' P: F: S: r: R: q 1 2 n 'X:=expl' 'M+:=match'
+ 'J:=group' 'V:=group' P: F: S: r: R: q 1 2 n 'X:=expl' 'M+:=match'
if (( $#match )); then
match="${match[2]}"
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author