Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: CVS completer (Re: PATCH: Re: Completion/User functions again)



In article <rsqvhb9ulqj.fsf@xxxxxxxxxxxxxxxxx>,
  Tanaka Akira <akr@xxxxxxxxxxx> writes:

> Most of codes to handle CVS/* are taken from Misc/compctl-examples.

Probably, this is a bug fix though I don't understand rules for array
variable expansion completely.

--- Misc/compctl-examples-	Sun Jul 25 20:34:56 1999
+++ Misc/compctl-examples	Sun Jul 25 20:35:06 1999
@@ -563,7 +563,7 @@
 cvsentries() {
     setopt localoptions nullglob unset
     if [[ -f ${pref}CVS/Entries ]]; then
-	reply=( "${pref}${^${(@)${(@)${(f@)$(<${pref}CVS/Entries)}:#D*}#/}%%/*}" )
+	reply=( "${pref}${(@)^${(@)${(@)${(f@)$(<${pref}CVS/Entries)}:#D*}#/}%%/*}" )
     fi
 }
 
-- 
Tanaka Akira



Messages sorted by: Reverse Date, Date, Thread, Author