X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=tyKmef//ViuEl9EzjLs89lkPBfMZfqz1pMl5JROiOunBhhNzJaTHl e4AjMp+RKmoBLrJr8p7eTEvYP2nR3H+qvKt2K3KjzvdsQCWZuKDz7xOB0BitJ6SZ wPCQsM7q0oBtg3tyrhn7/p5i0T7AyRiUE03LWOUOJUk9h79BWDxQys= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding; s=default; bh=8PW4hEY1FndKpj36ejJyn6IIpow=; b=RpRzaer14ssN8aHWk6OHu0uplgc+ BOqzOwexImAiVZkT7BUOR1zGa+0dDkNUCUakaC4Ja/z4UtNH8BZ0zC8bnfxl8lBa SfbjYz8m4OlI2Pxh0ud9DI0C7Mh42vqZ6cTALXx13G+uTbWRLtN/ua9NQHQ+qrsA 7sdBK5Cmy2mt3rg= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: plane.gmane.org To: cygwin AT cygwin DOT com From: Thorsten Kampe Subject: Re: cygwin bash script suddenly can't find ls, grep Date: Sun, 12 Oct 2014 10:33:46 +0200 Lines: 16 Message-ID: References: <5439C59F DOT 5060308 AT molconn DOT com> <5439C8A6 DOT 5020605 AT cornell DOT edu> <5439CB8F DOT 9000708 AT molconn DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit User-Agent: MicroPlanet-Gravity/3.0.4 X-IsSubscribed: yes * LMH (Sat, 11 Oct 2014 20:30:07 -0400) > Good Lord, I guess I wasn't thinking very clearly trying to use > PATH as > a variable for something else. I changed to, > > FILE_DIR=$(ls -d './'$SET'/'$FOLD'/'$FOLD'_anneal/'$PARAM_SET'/'$AN_SET) > echo $FILE_DIR > > FILE_LIST=($(ls $FILE_DIR'/'*'out.txt' )) > echo ${FILE_LIST[@]} That looks pretty ugly. You probably can replace all that with FILE_LIST=(./$SET/$FOLD/$FOLD_anneal/$PARAM_SET/$AN_SET/*out.txt) Thorsten -- 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