From: Andrew Bray (andy@madhouse.demon.co.uk)
Date: 05/30/93


From: andy@madhouse.demon.co.uk (Andrew Bray)
Subject: Re: annoying bash quirk
Date: Sun, 30 May 1993 12:08:33 +0000

In article <wes.738732978@ashmont> wes@cs.UAlberta.CA (Wes Tutak) writes:
>1) Does bash seem _slow_ to anyone else but me. It seems that simple commands
>like cd or no command at all send bash off to never-never-land which takes
>forever (ok about a second, a _long_ second :-) to get the prompt again.
>What I want is instantaneous response, especially on a totaly unloaded
>system. If I'm making the kernel, I'll accept a slight lag in response
>time but otherwise no! So, do I need to change shells, or is there some
>setting for bash that I've missed?

If you are using SLS, then the problem is probably that the prompt (PS1)
runs 2 commands for every prompt issued: hostname and pwd.

I changed my prompt to evaluate hostname once, when the profile is
run (I assume your hostname will not change between boots), and I replaced
the call of pwd with use of bash's $PWD variable. It is all MUCH faster
now.

Regards,

Andy