Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _cvs
- X-seq: zsh-workers 7310
- From: Tanaka Akira <akr@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: _cvs
- Date: 29 Jul 1999 02:23:37 +0900
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Hm. Since cvsignore may have patterns instead of concrete filenames,
_cvs should not quote them.
--- Completion/User/_cvs Thu Jul 29 01:09:13 1999
+++ Completion/User/_cvs Thu Jul 29 02:17:47 1999
@@ -198,7 +198,7 @@
_cvsdirentries () {
setopt localoptions nullglob unset
if [[ -f ${pref}CVS/Entries ]]; then
- entries=( ${${${(M)${(f)"$(<${pref}CVS/Entries)"}:#D/*}#D/}%%/*} )
+ entries=( ${${${${(M)${(f)"$(<${pref}CVS/Entries)"}:#D/*}#D/}%%/*}:q} )
else
entries=()
fi
@@ -207,7 +207,7 @@
_cvsentries () {
setopt localoptions nullglob unset
if [[ -f ${pref}CVS/Entries ]]; then
- entries=( ${${${${(f)"$(<${pref}CVS/Entries)"}:#D}#(D|)/}%%/*} )
+ entries=( ${${${${${(f)"$(<${pref}CVS/Entries)"}:#D}#(D|)/}%%/*}:q} )
else
entries=()
fi
@@ -234,13 +234,13 @@
local OLDTZ="$TZ"; if ! (( $+TZ )); then unset OLDTZ; fi; export TZ=GMT
mtime=( ${(s:/:)${(j:/:)${${${${(M)${(f)Entries}:#/*}#/}%/*/*}/\\/*\\///}}} )
- entries=( ${${${(M)${(f)Entries}:#D/*}#D/}%%/*} )
+ entries=( ${${${${(M)${(f)Entries}:#D/*}#D/}%%/*}:q} )
builtin stat -n +mtime -F '%a %b %e %T %Y' "$pref${(@k)^mtime}" |
while read line
do
line=${line#$pref}
if [[ x"$mtime[${line%% *}]" != x"${line#* }" ]]; then
- entries=($entries "${line%% *}")
+ entries=($entries "${${line%% *}:q}")
fi
done
@@ -252,8 +252,8 @@
_cvsdirentries
case $#entries in
0) false;;
- 1) compgen "$@" -g "${entries:q}";;
- *) compgen "$@" -g '('${(j:|:)entries:q}')';;
+ 1) compgen "$@" -g "$entries";;
+ *) compgen "$@" -g '('${(j:|:)entries}')';;
esac
else
_files
@@ -267,8 +267,8 @@
_cvsentries
case $#entries in
0) false;;
- 1) compgen -g "${entries:q}";;
- *) compgen -g '('${(j:|:)entries:q}')';;
+ 1) compgen -g "$entries";;
+ *) compgen -g '('${(j:|:)entries}')';;
esac
else
_files
@@ -282,8 +282,8 @@
_cvsentries_modified
case $#entries in
0) false;;
- 1) compgen -g "${entries:q}";;
- *) compgen -g '('${(j:|:)entries:q}')';;
+ 1) compgen -g "$entries";;
+ *) compgen -g '('${(j:|:)entries}')';;
esac
else
_files
@@ -297,9 +297,9 @@
_cvsentries
setopt localoptions unset
local omit
- omit=( ${pref}*(D:t) )
- eval 'entries=( ${entries:#('${(j:|:)omit:q}')} )'
- compadd -P "$qpref" - ${entries:q} ||
+ omit=( ${pref}*(D:t:q) )
+ eval 'entries=( ${entries:#('${(j:|:)omit}')} )'
+ compadd -P "$qpref" - ${entries} ||
_cvsdirs
else
_files
@@ -316,8 +316,8 @@
omit=( CVS $entries ${=cvsignore} )
[[ -r ~/.cvsignore ]] && omit=( $omit $(<~/.cvsignore) )
[[ -r ${pref}.cvsignore ]] && omit=( $omit $(<${pref}.cvsignore) )
- compgen -g '*~(*/|)('${(j:|:)omit:q}')(D)' ||
- { _cvsdirentries; compgen -g '('${(j:|:)entries:q}')(D)' }
+ compgen -g '*~(*/|)('${(j:|:)omit}')(D)' ||
+ { _cvsdirentries; compgen -g '('${(j:|:)entries}')(D)' }
else
_files
fi
--
Tanaka Akira
Messages sorted by:
Reverse Date,
Date,
Thread,
Author