mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-09 00:11:25 +02:00
users/7553: include zsh version in dump file to avoid problems with upgrades
This commit is contained in:
parent
7c35cffb0d
commit
78da7d872e
3 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-06-16 Oliver Kiddle <opk@zsh.org>
|
||||||
|
|
||||||
|
* users/7553: Completion/compdump, Completion/compinit:
|
||||||
|
include zsh version in dump file to avoid problems with upgrades
|
||||||
|
|
||||||
2004-06-15 Clint Adams <clint@zsh.org>
|
2004-06-15 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
* 20055: Completion/Unix/Command/_tla: additions and fixes
|
* 20055: Completion/Unix/Command/_tla: additions and fixes
|
||||||
|
|
|
@ -33,7 +33,7 @@ if [[ -n "$_comp_secure" ]]; then
|
||||||
(( $#_d_wdirs )) && _d_files=( "${(@)_d_files:#(${(j:|:)_d_wdirs})/*}" )
|
(( $#_d_wdirs )) && _d_files=( "${(@)_d_files:#(${(j:|:)_d_wdirs})/*}" )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
print "#files: $#_d_files" > $_d_file
|
print "#files: $#_d_files\tversion: $ZSH_VERSION" > $_d_file
|
||||||
|
|
||||||
# Dump the arrays _comps, _services and _patcomps. The quoting
|
# Dump the arrays _comps, _services and _patcomps. The quoting
|
||||||
# hieroglyphics ensure that a single quote inside a variable is itself
|
# hieroglyphics ensure that a single quote inside a variable is itself
|
||||||
|
|
|
@ -442,7 +442,9 @@ _i_done=''
|
||||||
if [[ -f "$_comp_dumpfile" ]]; then
|
if [[ -f "$_comp_dumpfile" ]]; then
|
||||||
if [[ -n "$_i_check" ]]; then
|
if [[ -n "$_i_check" ]]; then
|
||||||
read -rA _i_line < "$_comp_dumpfile"
|
read -rA _i_line < "$_comp_dumpfile"
|
||||||
if [[ _i_autodump -eq 1 && $_i_line[2] -eq $#_i_files ]]; then
|
if [[ _i_autodump -eq 1 && $_i_line[2] -eq $#_i_files &&
|
||||||
|
$ZSH_VERSION = $_i_line[4] ]]
|
||||||
|
then
|
||||||
builtin . "$_comp_dumpfile"
|
builtin . "$_comp_dumpfile"
|
||||||
_i_done=yes
|
_i_done=yes
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue