This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Slowness when setting PS1 variable???


Thomas Chadwick wrote:
> Update.  I've further observed that while running whoami at the
> command-line returns a result immediately, running it inside a pair
> of back-tics "`" shows the blocking behavior.  For instance, if I do
> this: 
> 
> $ whoami
> 
> I get a result immediately.
> 
> However, if I do this:
> 
> $ echo `whoami`
> 
> It takes a good 5-10 seconds to print a value and return the prompt.

Almost instantaneous here. I suggest you:

$ echo `strace -o whoami.strace whoami`

and look over whoami.strace for any obvious delays.

Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]