From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10369 invoked by alias); 15 Aug 2011 02:47:13 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16241 Received: (qmail 18088 invoked from network); 15 Aug 2011 02:47:12 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.1 Received-SPF: neutral (ns1.primenet.com.au: 128.2.11.95 is neither permitted nor denied by SPF record at _spf.google.com) Date: Sun, 14 Aug 2011 22:47:05 -0400 From: gi1242+zsh@gmail.com To: zsh-users@zsh.org Subject: Re: Rehash after installs Message-ID: <20110815024705.GD18671@andrew.cmu.edu> Mail-Followup-To: gi1242+zsh@gmail.com, zsh-users@zsh.org References: <20110813070535.GA10909@soljaris7.fritz.box> <20110814040306.GC32168@andrew.cmu.edu> <20110814144635.GC3824@andrew.cmu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-PMX-Version: 5.5.9.388399, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.5.19.222118 X-SMTP-Spam-Clean: 33% ( RDNS_SUSP_FORGED_FROM 3.5, FORGED_FROM_GMAIL 0.1, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, BODY_SIZE_800_899 0, NO_REAL_NAME 0, NO_URI_FOUND 0, RDNS_BROADBAND 0, RDNS_GENERIC_POOLED 0, RDNS_POOLED 0, RDNS_SUSP 0, RDNS_SUSP_GENERIC 0, RDNS_SUSP_SPECIFIC 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CD 0, __CT 0, __CT_TEXT_PLAIN 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_GMAIL 0, __HAS_MSGID 0, __INT_PROD_COMP 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __PHISH_SPEAR_STRUCTURE_1 0, __RDNS_BROADBAND_5 0, __RDNS_POOLED_11 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __USER_AGENT 0) X-SMTP-Spam-Score: 33% X-Scanned-By: MIMEDefang 2.60 on 128.2.11.95 On Sun, Aug 14, 2011 at 05:02:13PM +0200, Mikael Magnusson wrote: >> The man page however seems to say that a rehash is issued on *every* >> external command completion request. Is it possible to rehash only on >> every *failed* external command completion request. >> >> I guess it doesn't really matter so much as I can't (yet) notice too >> much of a performance penalty. > > Sure, but then you would still get incorrect completions as long as > you typed something that can be completed to another command, ie you > installed foobara and had foobaza already, so fooba would give > you foobaza, while foobar would give foobara. That's true! I guess completion style rehash is the way to go. Thanks, Gautam -- Modern Computer Viruses: Texas Virus -- Makes sure it's bigger than any other file.