Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh hangs loading init files



Please don't top post.

On 7 January 2012 02:12, Greg Klanderman <gak@xxxxxxxxxxxxxx> 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 <pws@xxxxxxxxxxxxxxxxxxxxx>
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  <pws@xxxxxxx>
+
+       * users/14411: Src/hashtable.c: only hash stat-able executable
+       regular files in the command table.
+

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author