This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

zsh hangs with "command not found" (Peter A. Castro?)


This is a follow-up to the thread "zsh 4.1.1-3 on W2000 hangs with
command not found" from March 2004.

Cygwin 1.5.12s(0.116/4/2) 20040907 00:06:12
zsh 4.2.0
Windows XP SP2

zsh "hangs" about ten seconds when I try to execute a nonexistant
command (bash in comparison returns immediately).

Even unsetting all environment variables inherited from Windows and
deleting my .zshrc didn't make any difference.

Changes to march:
Specifying an absolute path ('/bin/foobar') and unsetting 'correct'
and 'correctall' make no difference anymore.

* Now I tried to analyze my problem with "File Monitor" from
SysInternals. I captured two filtered sessions: one with zsh executing
"foozsh" and one with bash executing "foobash" (both attached).

Things I noticed:
bash queries 88 items while zsh queries 123. This shouldn't explain
the ten second difference.

zsh spawns a new instance/process of zsh (pid 224) on line 29! Until
this line the query results show up with no delay in "File Monitor".
The next 98 lines show up with the ten second delay.

So either the starting of a new zsh instance/process is so terribly
slow or the new zsh process searches (for whatever reason) much much
slower than the first one.

Bash in contrast doesn't spawn a new process at all.

So why does zsh create a new zsh process after searching for 28 items
and why is either this so slow or the searching in the new process so

Thanks for your attention, Thorsten

Attachment: zsh.LOG
Description: Attached file: zsh.LOG

Attachment: bash.LOG
Description: Attached file: bash.LOG

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]