Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Sat, 25 Aug 2001 14:14:20 -0400
From: Christopher Faylor <cygwin@cygwin.com>
To: cygwin@cygwin.com
Cc: nabbasi@pacbell.net
Subject: Re: Problems with path resolution
Message-ID: <20010825141420.L21709@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com, nabbasi@pacbell.net
References: <D59EA43E31578445B543D05854E2957353B263@mn65-exuser1.htc.honeywell.com> <001d01c12d2f$5c7b93c0$1eea65d8@me>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.11i
In-Reply-To: <001d01c12d2f$5c7b93c0$1eea65d8@me>; from nabbasi@pacbell.net on Fri, Aug 24, 2001 at 11:29:57PM -0700

On Fri, Aug 24, 2001 at 11:29:57PM -0700, nasser abbasi wrote:
>I am also seeing some strange path problems with 1.3.2
>
>I say 
>
>ls -l  /cygdrive/f/foo
>
>and it lists it.
>
>I say
>
>file /cygdrive/f/foo
>
>and I get an error 'No such file or directory'
>
>foo is some binary file.

I assume that foo has a .exe extension.  ls -l will tack on a .exe to a file name if
it can't find it without the extension.  ls is probably the only cygwin utility that
will do that, with the possible exception of 'cp' (depends on the version of cp and
there are bugs in all versions).

So, the short answer is 'always add the .exe extension'.

cgf

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

