From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8664 invoked from network); 10 Jul 2005 16:20:27 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 10 Jul 2005 16:20:27 -0000 Received: (qmail 7187 invoked from network); 10 Jul 2005 16:20:21 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 10 Jul 2005 16:20:21 -0000 Received: (qmail 1661 invoked by alias); 10 Jul 2005 16:20:18 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21419 Received: (qmail 1652 invoked from network); 10 Jul 2005 16:20:18 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 10 Jul 2005 16:20:18 -0000 Received: (qmail 6827 invoked from network); 10 Jul 2005 16:20:18 -0000 Received: from vms044pub.verizon.net (206.46.252.44) by a.mx.sunsite.dk with SMTP; 10 Jul 2005 16:20:14 -0000 Received: from candle.brasslantern.com ([71.116.88.149]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IJF006LK6POG4AH@vms044.mailsrvcs.net> for zsh-workers@sunsite.dk; Sun, 10 Jul 2005 11:20:13 -0500 (CDT) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j6AGKBX7024205 for ; Sun, 10 Jul 2005 09:20:11 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j6AGKBGt024204 for zsh-workers@sunsite.dk; Sun, 10 Jul 2005 09:20:11 -0700 Date: Sun, 10 Jul 2005 16:20:10 +0000 From: Bart Schaefer Subject: Re: PATCH: _unexpand In-reply-to: <20050710061443.GA12208@ruby.cat.pdx.edu> To: zsh-workers@sunsite.dk Message-id: <1050710162010.ZM24203@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <20050710061443.GA12208@ruby.cat.pdx.edu> Comments: In reply to Travis Spencer "Re: PATCH: _unexpand" (Jul 9, 11:14pm) X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 On Jul 9, 11:14pm, Travis Spencer wrote: } } I looked through the existing functions in the distribution, and I saw } a function that looked pretty good -- _pick_variant. } [...] I have the FSF's unexpand at the head of my path. } I wanted to test it with the Sun version, so I reexported my PATH and } rehashed. To my surprise, the tab completion still showed the GNU } flags. That may be because _pick_variant caches its results so that it doesn't have to re-run the command every time you do a completion. It appears from both of those typescripts as if you first tried a completion with the gnu version, then changed your path and tried again. That won't do the right thing; you have to try completion the very first time with the version that you will always be using thereafter. Try "unset _cmd_variant" right after you change your path, to clear the _pick_variant cache.