mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-08-16 16:40:55 +02:00
23529: quote completion dump to prevent global alias expansion
This commit is contained in:
parent
2291ffb70d
commit
afd3e16fec
2 changed files with 11 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-06-06 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
|
* Phil Pennock: 23529: Completion/compdump: quote completion dump
|
||||||
|
to prevent global alias expansion.
|
||||||
|
|
||||||
2007-06-05 Peter Stephenson <pws@csr.com>
|
2007-06-05 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
* unposted: Completion/Unix/Command/_units: message and tag were
|
* unposted: Completion/Unix/Command/_units: message and tag were
|
||||||
|
|
|
@ -41,32 +41,32 @@ print "#files: $#_d_files\tversion: $ZSH_VERSION" > $_d_file
|
||||||
|
|
||||||
print "\n_comps=(" >> $_d_file
|
print "\n_comps=(" >> $_d_file
|
||||||
for _d_f in ${(ok)_comps}; do
|
for _d_f in ${(ok)_comps}; do
|
||||||
print -r - "${(q)_d_f}" "${(q)_comps[$_d_f]}"
|
print -r - "${(qq)_d_f}" "${(qq)_comps[$_d_f]}"
|
||||||
done >> $_d_file
|
done >> $_d_file
|
||||||
print ")" >> $_d_file
|
print ")" >> $_d_file
|
||||||
|
|
||||||
print "\n_services=(" >> $_d_file
|
print "\n_services=(" >> $_d_file
|
||||||
for _d_f in ${(ok)_services}; do
|
for _d_f in ${(ok)_services}; do
|
||||||
print -r - "${(q)_d_f}" "${(q)_services[$_d_f]}"
|
print -r - "${(qq)_d_f}" "${(qq)_services[$_d_f]}"
|
||||||
done >> $_d_file
|
done >> $_d_file
|
||||||
print ")" >> $_d_file
|
print ")" >> $_d_file
|
||||||
|
|
||||||
print "\n_patcomps=(" >> $_d_file
|
print "\n_patcomps=(" >> $_d_file
|
||||||
for _d_f in ${(ok)_patcomps}; do
|
for _d_f in ${(ok)_patcomps}; do
|
||||||
print -r - "${(q)_d_f}" "${(q)_patcomps[$_d_f]}"
|
print -r - "${(qq)_d_f}" "${(qq)_patcomps[$_d_f]}"
|
||||||
done >> $_d_file
|
done >> $_d_file
|
||||||
print ")" >> $_d_file
|
print ")" >> $_d_file
|
||||||
|
|
||||||
_d_tmp="_postpatcomps"
|
_d_tmp="_postpatcomps"
|
||||||
print "\n_postpatcomps=(" >> $_d_file
|
print "\n_postpatcomps=(" >> $_d_file
|
||||||
for _d_f in ${(ok)_postpatcomps}; do
|
for _d_f in ${(ok)_postpatcomps}; do
|
||||||
print -r - "${(q)_d_f}" "${(q)_postpatcomps[$_d_f]}"
|
print -r - "${(qq)_d_f}" "${(qq)_postpatcomps[$_d_f]}"
|
||||||
done >> $_d_file
|
done >> $_d_file
|
||||||
print ")" >> $_d_file
|
print ")" >> $_d_file
|
||||||
|
|
||||||
print "\n_compautos=(" >> $_d_file
|
print "\n_compautos=(" >> $_d_file
|
||||||
for _d_f in "${(ok@)_compautos}"; do
|
for _d_f in "${(ok@)_compautos}"; do
|
||||||
print -r - "${(q)_d_f}" "${(q)_compautos[$_d_f]}"
|
print -r - "${(qq)_d_f}" "${(qq)_compautos[$_d_f]}"
|
||||||
done >> $_d_file
|
done >> $_d_file
|
||||||
print ")" >> $_d_file
|
print ")" >> $_d_file
|
||||||
|
|
||||||
|
@ -129,7 +129,7 @@ done
|
||||||
print >> $_d_file
|
print >> $_d_file
|
||||||
|
|
||||||
print "typeset -gUa _comp_assocs" >> $_d_file
|
print "typeset -gUa _comp_assocs" >> $_d_file
|
||||||
print "_comp_assocs=( ${(q)_comp_assocs} )" >> $_d_file
|
print "_comp_assocs=( ${(qq)_comp_assocs} )" >> $_d_file
|
||||||
|
|
||||||
mv $_d_file ${_d_file%.$HOST.$$}
|
mv $_d_file ${_d_file%.$HOST.$$}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue