Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ${_comps[(K)*diff*]}
- X-seq: zsh-workers 10044
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: ${_comps[(K)*diff*]}
- Date: Fri, 10 Mar 2000 10:54:32 +0100 (MET)
- In-reply-to: "Bart Schaefer"'s message of Thu, 9 Mar 2000 18:43:05 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> On Mar 9, 7:50pm, Andrej Borsenkow wrote:
> } Subject: ${_comps[(K)*diff*]}
> }
> } Do I miss something?
> }
> } bor@itsrm2% print ${_comps[(R)*diff*]}
> } _diff _diff
> } bor@itsrm2% print ${_comps[(K)*diff*]}
> } === nothing ===
>
> What you miss is that [(k)...] and [(K)...] don't do pattern-matching
> on the keys. I have an idea what's going wrong, but I don't have time
> to fix it right now.
(I don't see anything wrong here, what am I missing?)
But this made me notice that we have _use_lo as the default completion
function for gdiff. This was an oversight, right?
Bye
Sven
diff -ru ../z.old/Completion/User/_diff Completion/User/_diff
--- ../z.old/Completion/User/_diff Fri Mar 10 10:29:21 2000
+++ Completion/User/_diff Fri Mar 10 10:53:01 2000
@@ -1,3 +1,3 @@
-#compdef diff
+#compdef diff gdiff
_diff_options ':original file:_files' ':new file:_files'
diff -ru ../z.old/Completion/User/_use_lo Completion/User/_use_lo
--- ../z.old/Completion/User/_use_lo Fri Mar 10 10:29:27 2000
+++ Completion/User/_use_lo Fri Mar 10 10:52:56 2000
@@ -1,4 +1,4 @@
-#compdef gls gdiff
+#compdef gls
# This is for GNU-like commands which understand the --help option,
# but which do not otherwise require special completion handling.
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author