X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.5 required=5.0	tests=AWL,BAYES_00,RCVD_NUMERIC_HELO,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
connect(): No such file or directory
From: Andrew DeFaria <Andrew@DeFaria.com>
Subject: Re: bash - command - PATH question
Date: Wed, 19 May 2010 08:28:10 -0700
Lines: 46
Message-ID: <ht102a$5fg$1@dough.gmane.org>
References: <3185EFAF9C8F7B4E9DBDF56829BF7C78378E8F0B@srv060ex01.ssd.fsi.com> <4BF3FC7A.8030705@bopp.net> <3185EFAF9C8F7B4E9DBDF56829BF7C78378E8F33@srv060ex01.ssd.fsi.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.10) Gecko/20100512 Lightning/1.0b2pre Thunderbird/3.0.5
In-Reply-To: <3185EFAF9C8F7B4E9DBDF56829BF7C78378E8F33@srv060ex01.ssd.fsi.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

Again, have you tried dos2unix foo?

On 05/19/2010 08:16 AM, Rockefeller, Harry wrote:
>> On 5/19/2010 8:50 AM, Rockefeller, Harry wrote:
>>      
>>> Given that 'foo' is a bash script, why is it that:
>>>
>>> $ foo
>>>
>>> returns the error:
>>>
>>> bash: ./bin/foo: No such file or directory
>>>        
>    
>> What happens when you directly run ./bin/foo?
>>      
> I get exactly the same error.  The error is correct.
> ./bin/foo doesn't exist. (I'm not in home directory when
> I issue the command.)
>
>    
>> What is the shebang (first line) of foo?
>>      
> #!/bin/bash
> I thought it might have something to do with this and tried commenting
> It out but nothing changed.
>
>    
>>> BUT since foo is *really in* PATH, e.g.,
>>>
>>> $ `which foo`
>>>
>>> runs correctly?
>>>        
>    
>> What is the output of "which foo" in this case?
>>      
> /cygdrive/c/DOCUME~1/harryr/bin/foo
>
>
>    

-- 
Andrew DeFaria <http://defaria.com>
The easiest way to find something lost around the house is to buy a 
replacement.


--
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

