tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ MANY FILES in ONE directory

Unix shell emulator ▻

win32 bash takes too long when command is not found

In article <7kb464$mn3$1@watserv3.uwaterloo.ca>,
Larry Huang <lhuang@bsr5.uwaterloo.ca> wrote:
>I am using the Cygnus version of Bash on NT and found it very annoying
>that if I make a typing error when entering commands it takes forever
>for Bash to come back and tell me "command not found".

That's not a very precise statement of the problem!  I'm sure you don't
really mean "forever" (or you would say "bash doesn't come back").  It
could be helpful to know whether it's 5 seconds or 5 minutes; that gives
a clue as to the sort of problem it might be.

(By the way, this is not intended as a flame.  I think sysadmins,
doctors, and car mechanics are doomed to spending the rest of their
professional lives hearing vague "there's a problem..." stories.)

Anyway, have you checked your PATH?  It probably contains a directory
that's very slow to access, perhaps on a busy remote fileserver, or a
floppy disk or CD.

I haven't used CygWin recently, but it used to sometimes get confused
about whether a name like //c/Windows referred to the local C: drive,
or a network file system living on a host called `c'.  Doing the name
lookup to establish that there is no such host could take many few
seconds.

>ps. please email as well as post your response.  Thanks.

OK, but is it really that hard to follow the newsgroup for a few days
after you post your question?

Tim.
--
Tim Goodwin   | `I can't believe that someone is releasing
University of | something called "Unix" without something
Leicester, UK | called "/bin/sh".' -- Randal L. Schwartz

Original headers:

From: tjg@ltpcg.star.le.ac.uk (Tim J Goodwin)
Newsgroups: comp.unix.shell
Subject: Re: win32 bash takes too long when command is not found
Date: 18 Jun 1999 11:03:15 +0100
Organization: University of Leicester, UK
Message-ID: <7kd5h3$82p$1@ltpcg.star.le.ac.uk>
References: <7kb464$mn3$1@watserv3.uwaterloo.ca>

△ comp.unix.shell △

◅ MANY FILES in ONE directory

Unix shell emulator ▻