From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6763 invoked from network); 15 Jun 2004 10:14:28 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.86) by ns1.primenet.com.au with SMTP; 15 Jun 2004 10:14:28 -0000 Received: (qmail 9571 invoked from network); 15 Jun 2004 10:14:00 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 15 Jun 2004 10:14:00 -0000 Received: (qmail 9158 invoked by alias); 15 Jun 2004 10:13:35 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7553 Received: (qmail 9141 invoked from network); 15 Jun 2004 10:13:34 -0000 Received: from thor.dotsrc.org (HELO a.mx.sunsite.dk) (qmailr@130.225.247.86) by sunsite.dk with SMTP; 15 Jun 2004 10:13:31 -0000 Received: (qmail 8699 invoked from network); 15 Jun 2004 10:13:31 -0000 Received: from mail36.messagelabs.com (193.109.254.211) by a.mx.sunsite.dk with SMTP; 15 Jun 2004 10:13:30 -0000 X-VirusChecked: Checked X-Env-Sender: okiddle@yahoo.co.uk X-Msg-Ref: server-17.tower-36.messagelabs.com!1087294383!6978699 X-StarScan-Version: 5.2.10; banners=-,-,- X-Originating-IP: [158.234.9.163] Received: (qmail 10602 invoked from network); 15 Jun 2004 10:13:03 -0000 Received: from iris.logica.co.uk (158.234.9.163) by server-17.tower-36.messagelabs.com with SMTP; 15 Jun 2004 10:13:03 -0000 Received: from trentino.logica.co.uk ([158.234.142.61]) by iris.logica.co.uk (8.12.3/8.12.3/Debian -4) with ESMTP id i5FAD2UI017596 for ; Tue, 15 Jun 2004 11:13:02 +0100 Received: from trentino.logica.co.uk (localhost [127.0.0.1]) by trentino.logica.co.uk (Postfix) with ESMTP id E74187970C6A for ; Tue, 15 Jun 2004 12:12:16 +0200 (CEST) X-VirusChecked: Checked X-StarScan-Version: 5.0.7; banners=.,-,- In-reply-to: <200406150926.i5F9Q7c7030048@news01.csr.com> From: Oliver Kiddle References: <200406150926.i5F9Q7c7030048@news01.csr.com> To: zsh-users@sunsite.dk Subject: Re: Tab completion breaks after upgrade Date: Tue, 15 Jun 2004 12:12:16 +0200 Message-ID: <6586.1087294336@trentino.logica.co.uk> X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=BAYES_50 autolearn=no version=2.63 X-Spam-Hits: 0.0 Peter wrote: > lists wrote: > > It was the ~/.zcompdump file. Thanks so much! > > I think Bart's right and we need to make this version dependent. The > only real downside is we probably ought to flag this up to the user so > they can prune ancient files which aren't going to be used again. It > should be an easy change but I'm in the thick of other stuff at the > moment. Why not just stick $ZSH_VERSION in the top of .zcompdump along with the number of files. That avoids having to clear up the ancient files. Oliver Index: Completion/compdump =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/compdump,v retrieving revision 1.6 diff -u -r1.6 compdump --- Completion/compdump 20 Apr 2004 12:11:15 -0000 1.6 +++ Completion/compdump 15 Jun 2004 10:07:45 -0000 @@ -33,7 +33,7 @@ (( $#_d_wdirs )) && _d_files=( "${(@)_d_files:#(${(j:|:)_d_wdirs})/*}" ) 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 # hieroglyphics ensure that a single quote inside a variable is itself Index: Completion/compinit =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/compinit,v retrieving revision 1.11 diff -u -r1.11 compinit --- Completion/compinit 20 Apr 2004 12:11:15 -0000 1.11 +++ Completion/compinit 15 Jun 2004 10:07:46 -0000 @@ -442,7 +442,9 @@ 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