mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-01 06:20:55 +01: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
|
|
@ -442,7 +442,9 @@ _i_done=''
|
|||
if [[ -f "$_comp_dumpfile" ]]; then
|
||||
if [[ -n "$_i_check" ]]; then
|
||||
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"
|
||||
_i_done=yes
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue