X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=4.6 required=5.0	tests=AWL,BAYES_50,DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4D1B5F67.9080208@gmail.com>
Date: Wed, 29 Dec 2010 16:18:47 +0000
From: Jon Egerton-Kemp <jonek90@gmail.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Cygwin 1.7.7 - /bin/ls hangs?
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Hi all,

I recently upgraded to 1.7.7 and a script that I use to set up a lot of 
environment variables is now hanging.
The problem is quite unpredictable and I am struggling to find ways to reliably 
reproduce or diagnose.

I am using csh (tcsh) and 'source'-ing a script but I have seen 'bash' hang just 
running:
   bash-3.2$ ls /usr/bin
(although not today!)

Typically I do something like:
% source /cygdrive/h/jek/bin/jSetfor.csh

and with 'echo' set it runs to:

    ...
    if ( -d /cygdrive/s/syb1503/shared ) then
    setenv SYBASE_JRE /cygdrive/s/syb1503/shared/`ls $SYBHOME/shared/|fgrep
    jre|tail -1`
    ls /cygdrive/s/syb1503/shared/
    tail -1

Run again and this time it gets further but hangs with:

    ...
    if ( -d /cygdrive/s/syb1503/REP-15_2/lib3p ) then
    endif
    setenv SYBASE_RPL `ls $SYBHOME|fgrep RPL-|tail -1`
    ls /cygdrive/s/syb1503
    fgrep RPL-

My guess is a timing issue - perhaps in the pipe?

Any thoughts on what is going wrong or what I can do to avoid it?

Many thanks and Happy New Year,
  - jon.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

