public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Poor performance of bash cd command
@ 1998-07-19 19:03 Earl Chew
  1998-07-20 11:30 ` Mikey
  1998-07-20 18:29 ` Poor perf of cd; pregnant pauses Andrew Sharp
  0 siblings, 2 replies; 4+ messages in thread
From: Earl Chew @ 1998-07-19 19:03 UTC (permalink / raw)
  To: gnu-win32

I'm running b19.1 with bash 2.01.1(2)-release.

Why does:
  cd e:/

take about 10 seconds to execute (ensure that you're somewhere
else first)?

And:
  cd //e

takes the expected amount of time?

Earl
-- 
>----------------------------------------------------------------------+
> Earl Chew                              mailto:earl_chew@hp.com       |
> Hewlett-Packard Australia              Tel:   +61 3 9210 5528        |
> Advanced Networks Division             Fax:   +61 3 9210 5550        |
> 347 Burwood Highway                    GPS:   37 51'46"S 145 10'03"E |
> Burwood East, Victoria 3151, Australia                               |
>----------------------------------------------------------------------+
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Poor performance of bash cd command
  1998-07-19 19:03 Poor performance of bash cd command Earl Chew
@ 1998-07-20 11:30 ` Mikey
  1998-07-20 18:29 ` Poor perf of cd; pregnant pauses Andrew Sharp
  1 sibling, 0 replies; 4+ messages in thread
From: Mikey @ 1998-07-20 11:30 UTC (permalink / raw)
  To: earl, gnu-win32

bash assumes : means remote host so you
1 load winsock
2 search for a host named c
3 discover no host
4 convert to cygwin32 path
5 cd /

the best thing to do is mount -b c:/ /c (if it isn't your root drive)
cd /c
see the list discussions (WARS) about text/binary for what the -b is for

a possible fix would be to change the search order in bash
so you attempt a local cd first, but this would probably break
many more things than it would fix

On Mon, 20 Jul 1998 12:02:57 +1000, you wrote:

>I'm running b19.1 with bash 2.01.1(2)-release.
>
>Why does:
>  cd e:/
>
>take about 10 seconds to execute (ensure that you're somewhere
>else first)?
>
>And:
>  cd //e
>
>takes the expected amount of time?
>
>Earl

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Poor perf of cd; pregnant pauses
  1998-07-19 19:03 Poor performance of bash cd command Earl Chew
  1998-07-20 11:30 ` Mikey
@ 1998-07-20 18:29 ` Andrew Sharp
  1998-07-21 11:09   ` Matthias Morche
  1 sibling, 1 reply; 4+ messages in thread
From: Andrew Sharp @ 1998-07-20 18:29 UTC (permalink / raw)
  To: gnu-win32

A number of emails about this have come and gone in the last few days. 
Here is my experience:  starting with 19.[01], almost any command can
have a "pregnant pause" which occurrs after the command has exited but
before bash prints the next prompt.  Or approximately in that frame of
reference.  It is semi-random, however, and not confined to 'cd'
commands.  The same command typed over and over will get the pause
sometimes and sometimes not.  This on NT 4.0.

As for the hang when you type a command that doesn't exist, I used to
have this problem on a Win95 OSR2 machine (never on NT), I'm pretty sure
it went away (it's gone now, so something made it go away) after I
painstakingly eliminated non-existant paths from the PATH variable. 
This includes paths that weren't "working" for gnuwin32, like paths with
an embedded space proceeded by a backslash that used to work in b18. 
Actually, I'm not positive about that last part...I know that paths like
that are having some kind of problem on b19 that they didn't have on
b18, and I think that was one of them.  But you get the idea.  Also,
paths on network drives that aren't mapped at the moment, etc.  This
only seems to be a problem on Win95.

a

Earl Chew wrote:
> 
> I'm running b19.1 with bash 2.01.1(2)-release.
> 
> Why does:
>   cd e:/
> 
> take about 10 seconds to execute (ensure that you're somewhere
> else first)?
> 
> And:
>   cd //e
> 
> takes the expected amount of time?
> 
> Earl
> --
> >----------------------------------------------------------------------+
> > Earl Chew                              mailto:earl_chew@hp.com       |
> > Hewlett-Packard Australia              Tel:   +61 3 9210 5528        |
> > Advanced Networks Division             Fax:   +61 3 9210 5550        |
> > 347 Burwood Highway                    GPS:   37 51'46"S 145 10'03"E |
> > Burwood East, Victoria 3151, Australia                               |
> >----------------------------------------------------------------------+
> -
> For help on using this list (especially unsubscribing), send a message to
> "gnu-win32-request@cygnus.com" with one line of text: "help".
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Poor perf of cd; pregnant pauses
  1998-07-20 18:29 ` Poor perf of cd; pregnant pauses Andrew Sharp
@ 1998-07-21 11:09   ` Matthias Morche
  0 siblings, 0 replies; 4+ messages in thread
From: Matthias Morche @ 1998-07-21 11:09 UTC (permalink / raw)
  To: Maillist, Cygnus

Andrew Sharp wrote:
...
> As for the hang when you type a command that doesn't exist, I used to
> have this problem on a Win95 OSR2 machine (never on NT), I'm pretty sure
> it went away (it's gone now, so something made it go away) after I
> painstakingly eliminated non-existant paths from the PATH variable.
...

Another instance of this problem arises, when Novell defines a PATH like
"Y:" which is translated into "//Y.". Unfortunately this invokes a
search for a machine named "Y". The problem went away, whem I patched
the path to give "//Y" instead:
export PATH=`echo $PATH | sed
's=\(^\|:\)\(//[A-Z]\)\.\(/\|:\|$\)=\1\2\3='`

Perhaps there' a better solution out there.
-- 
	Matthias Morche ( mailto:morche@sat1.de )
		SAT.1 ( http://www.sat1.de )

>>> Linux: the greatest adventure game since the invention of the PC <<<
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-07-21 11:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-07-19 19:03 Poor performance of bash cd command Earl Chew
1998-07-20 11:30 ` Mikey
1998-07-20 18:29 ` Poor perf of cd; pregnant pauses Andrew Sharp
1998-07-21 11:09   ` Matthias Morche

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).