delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/02/17:18:40

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 2 Sep 2010 17:18:30 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Windows-style pathname does not work as command - why?
Message-ID: <20100902211830.GC527@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4C7FE2C2 DOT 8060104 AT fgm DOT com> <4C7FE938 DOT 6060806 AT redhat DOT com>
MIME-Version: 1.0
In-Reply-To: <4C7FE938.6060806@redhat.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Thu, Sep 02, 2010 at 12:13:12PM -0600, Eric Blake wrote:
>On 09/02/2010 11:45 AM, Daniel Barclay wrote:
>> I don't quite understand this behavior:
>>
>> $ ls C:\\tools\\emacs-23.2\\bin\\runemacs.exe
>> C:\tools\emacs-23.2\bin\runemacs.exe
>> $ C:\\tools\\emacs-23.2\\bin\\runemacs.exe
>> bash: C:\tools\emacs-23.2\bin\runemacs.exe: command not found
>>
>> In particular, why is it that bash does not understand that Windows
>> pathname when it is used as a command argument, even though bash and
>> Cygwin clearly understand it when it is used as a command argument?
>>
>>
>> Is that behavior a bug (e.g., does bash try to judge whether the command
>> is an absolute vs. relative pathname without either first converting to
>> a Unix-style pathname or otherwise recognizing Windows-style pathname)?
>
>You're not the first to notice this, but it's also not the highest 
>priority on my list to look into, because we already recommend using 
>POSIX style paths in the first place.
>
>> Or is it some known irregularity (resulting from trying to handle both
>> Windows- and Unix-style pathnames) that couldn't be resolved?
>
>Oh, I'm sure that bash could be patched to be smarter about DOS-style 
>pathnames.  But no one has been bothered by it enough to write a patch yet.

And, trying hard to make MS-DOS stuff work is sorta counter to the
whole reason for Cygwin.

cgf

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019