X-Recipient: archive-cygwin@delorie.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@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
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@cygwin.com
From: Thorsten Kampe <thorsten@thorstenkampe.de>
Subject: Re: cygwin bash script suddenly can't find ls, grep
Date: Sun, 12 Oct 2014 10:33:46 +0200
Lines: 16
Message-ID: <m1dedl$mea$1@ger.gmane.org>
References: <5439C59F.5060308@molconn.com> <5439C8A6.5020605@cornell.edu> <5439CB8F.9000708@molconn.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

