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

Thorsten Kampe thorsten@thorstenkampe.de
Sun Sep 12 15:11:00 GMT 2004


Hi,

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

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

Problem:
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
slow??!!


Thanks for your attention, Thorsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zsh.LOG
Type: application/octet-string
Size: 13760 bytes
Desc: Attached file: zsh.LOG
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040912/a219e811/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bash.LOG
Type: application/octet-string
Size: 10059 bytes
Desc: Attached file: bash.LOG
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040912/a219e811/attachment-0001.bin>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list