www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/11/20:02:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
From: Thorsten Kampe <thorsten AT thorstenkampe DOT de>
Subject: Re: zsh 4.1.1-3 on W2000 hangs with command not found
Date: Fri, 12 Mar 2004 02:02:22 +0100
Lines: 77
Message-ID: <t25roalggj41$.dlg@thorstenkampe.de>
References: <404C4D17 DOT 2010601 AT nch DOT it> <mo63hc98fw5q$.dlg AT thorstenkampe DOT de> <20040308134322 DOT GB30618 AT redhat DOT com> <12skmpomc0yfn$.dlg AT thorstenkampe DOT de> <20040308140506 DOT GA30979 AT redhat DOT com> <1o9zh9id328cw DOT dlg AT thorstenkampe DOT de> <Pine DOT LNX DOT 4 DOT 53 DOT 0403081103170 DOT 935 AT gremlin DOT fruitbat DOT org>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: isi-dialin-129-92.isionline-dialin.de
User-Agent: 40tude_Dialog/2.0.10.1de

* Peter A. Castro (2004-03-08 20:39 +0100)
> On Mon, 8 Mar 2004, Thorsten Kampe wrote:
> Also, for the record, I've just tried the latest snapshot, 20040306, and
> running missing commands do not hang or have any other strange behaviour
> as your describe:
> 
> (doctor AT garfunkel)[101] ~ % les
> zsh: correct 'les' to 'ls' [nyae]? n
> zsh: command not found: les
> zsh: 1240 exit 127   les
> (doctor AT garfunkel)[102] ~ % /bin/les
> zsh: no such file or directory: /bin/les
> zsh: 1245 exit 127   /bin/les
> (doctor AT garfunkel)[103] ~ % uname -a
> CYGWIN_NT-4.0 garfunkel 1.5.8s(0.111/4/2) 20040306 23:59:38 i686 unknown unknown Cygwin
> (doctor AT garfunkel)[104] ~ % cygcheck -s | grep zsh
> zsh                     4.1.1-3
> (doctor AT garfunkel)[105] ~ % setopt | grep correct
> correct
> correctall
> (doctor AT garfunkel)[106] ~ %

>> This is just a tiny problems for me. There was a real problem with zsh
>> where *completion* took a long time (it tried to do DNS lookup -
>> according to my Personal Firewall - and timed out when I wasn't online
>> and no DNS was available). This is gone. The other "problem" is no
>> problem for me because I use the completion and therefor the "correct"
>> mechanism is /very rarely/ triggered. After that zsh caches the answer
>> and replies immdiately "zsh: no such file or directory". (If I'm so
>> dumb to try it again.)
> 
> My example above has both correct and correctall on and I don't
> experience any problems no matter how many times I try to run a bad
> command.  This goes for weither zsh tries to correct the command or not.
> 
>> But please be aware that there may be different problems. The one I
>> described is with the "correct function" of zsh (and I figured that
>> out just today). Davide Marchignoli's problem seems to be different:
>>
>> % aoidfjkl        # immediately: "zsh: command not found: aoidfjklj"
>> % /bin/aoidfjklj  # hangs for about ten seconds until "zsh: no such file or directory: /bin/aoidfjklj"
> 
> Sorry, mine returnes immediately, no delay at all.  And this is on an old
> 400MHz PII running under a vmware emulator.  Oh, and I tried this same
> setup, with the latest snapshot on a 1.7Ghz system running MS Windows
> native without any problems either.   I also tried both of these on
> network mounted drives and didn't have any delays or problems.
> 
> I feel you should examine your environment thoroughly.  Perhaps you have
> more than one copy of cygwin1.dll in your PATH?  When you last upgraded,
> are you sure you existing all cygwin based processes before starting a
> new shell window?

I did that. My .zshrc is *exactly* the same on this host and on my
Gentoo Linux where everything is fine.

I tried to narrow the problem by deleting

* /etc/zprofile
* /etc/profile.d/zshell.zsh
* ~/.zshenv
* ~/.zprofile
* ~/.zlogout
* ~/.zlogin

and everything in .zshrc except "setopt correct correctall". It's
those two options that make zsh hang. I even unset all environment
variables inherited from Windows. No change.

If you have any hint how to find the problem I'd be glad to assist
(strace). By the way - I freshly installed Cygwin on this box and the
Windows installation (Windows XP SP1) is two months old. I deactived
my PF (Kerio - newest version) and even detached from my NetWare. Even
the Novell Client is the latest one. And locate shows only one
cygwin1.dll

Thorsten


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019