delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/03/02/13:57:55

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4B8D5FA3.10103@gmail.com>
Date: Tue, 02 Mar 2010 18:57:39 +0000
From: Dave <kilroyd AT googlemail DOT com>
User-Agent: Thunderbird 2.0.0.23 (X11/20091126)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: cygwin 1.7.1: "bash prompt here" can't be used at directory which's name contains unicode charactor.
References: <40399aed1003020442q4f49b811h41bd4064072762a5 AT mail DOT gmail DOT com> <4B8D5C9D DOT 9040906 AT gmail DOT com> <20100302185009 DOT GE12665 AT ednor DOT casa DOT cgf DOT cx>
In-Reply-To: <20100302185009.GE12665@ednor.casa.cgf.cx>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Note-from-DJ: This may be spam

Christopher Faylor wrote:
> On Tue, Mar 02, 2010 at 06:44:45PM +0000, Dave wrote:
>> Also, is the d:\ within quotes later in the command erronously
>> triggering the nodosfile warning?  I'm not expecting to see it here.
> 
> I guess this is a FAQ.  The error message comes from an attempt to do a
> file access using an MS-DOS path.  It does not come from random use of
> backslashes in the command line.
> 
> If you see the error then something is trying to use MS-DOS paths.

That's what I thought, but the command that's being run doesn't have an
MSDOS path except as an argument to the script that bash couldn't find:


C:\Users\andy>C:\cygwin\bin\bash -c "/bin/xhere /bin/bash.exe 'd:\我的工作'"

              ^ That's ok, cmd sees that one.

                                     ^ bash should try to find xhere

But we first get the warning:

---
cygwin warning:
  MS-DOS style path detected: /bin/xhere /bin/bash.exe 'd:\鎴戠殑宸ヤ綔'
  Preferred POSIX equivalent is: /bin/xhere /bin/bash.exe 'd:/鎴戠殑宸ヤ綔'
...
----

Note that it complains about xhere, bash and d:\xxx in one string. And
finally we get a can't find 'xhere bash d:\xxx':

---
/usr/bin/bash: /bin/xhere /bin/bash.exe 'd:\我的工作': No such file or
directory
---


Dave.

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