delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/08/11:54:57

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
Message-ID: <004501c2b72c$5cd74110$1247893e@pomello>
From: "Max Bowsher" <maxb AT ukf DOT net>
To: "Thomas Chadwick" <j_tetazoo AT hotmail DOT com>, <cygwin AT cygwin DOT com>
References: <F6wUUt9QrAo6hgb7IP20000c22e AT hotmail DOT com>
Subject: Re: Slowness when setting PS1 variable???
Date: Wed, 8 Jan 2003 15:40:50 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

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/

- Raw text -


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