From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5968 invoked by alias); 7 Jan 2012 01:29:04 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30094 Received: (qmail 4778 invoked from network); 7 Jan 2012 01:28:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.214.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7q4ExsgK9abJFSm34sqO52K53jqU8hYXketSgXkAHs0=; b=KjsTdMePt25z4O2mAcMq+gEc3j3m9vDB8ZvKcD5ICYXxYGB5sXjU0gLvcr36oZYuJu t3o77iRvCfQsAAxos1RpIVNdsxvYlENxsPJVWQOkKgtUFKhSTmHSMgHST4ODjKsFPkfg p6cuAx+6fHzOXe043XhiJPH2rBylsm51A5gns= MIME-Version: 1.0 In-Reply-To: References: <20229.54117.22089.85103@gargle.gargle.HOWL> <20120105193518.GE80751@dan.emsphone.com> Date: Sat, 7 Jan 2012 02:28:44 +0100 Message-ID: Subject: Re: zsh hangs loading init files From: Mikael Magnusson To: gak@klanderman.net Cc: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 Please don't top post. On 7 January 2012 02:12, Greg Klanderman wrote: > > yes, thanks. > > looks like maybe HASH_DIRS logic was changed and is now stat()ing > every potential executable it finds, whereas it used to only > getdents() on all the dirs in your path. > > still haven't found the changeset. I suspect this is the one, http://www.zsh.org/mla/users/2009/msg00786.html commit e85349fbf793f18211d9280ca80ec8911e05c708 Author: Peter Stephenson AuthorDate: Mon Sep 21 09:22:20 2009 +0000 users/14411: Src/hashtable.c: only hash stat-able executable regular files as commands --- ChangeLog | 7 ++++++- Src/hashtable.c | 43 +++++++++++++++++++++++++++++++++++++------ 2 files changed, 43 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index d51b6d1..4a477ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-09-21 Peter Stephenson + + * users/14411: Src/hashtable.c: only hash stat-able executable + regular files in the command table. + -- Mikael Magnusson