This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script.

On 02/18/2010 11:40 PM, Hongyi Zhao wrote:


When I double click on this dos batch, I'll meet the following errors:

cygwin warning:
   MS-DOS style path detected:
   Preferred POSIX equivalent is:
   CYGWIN environment variable option "nodosfilewarning" turns off this
   Consult the user's guide for more details about POSIX paths:
/usr/bin/bash: "F:\zhaohs\Desktop\æææç\myscript": No such file or

Don't use DOS paths.

Furthmore, if I open the cygwin terminal and manually switched into
that directory to run the myscript directly, it will no problem.

Right. Because there you have a POSIX path. Well and you also have a simple path. ;-)

What should I do to solve this problem?

If you must run from a batch file, convert the path to POSIX using 'cygpath' before bash sees it.

Larry Hall                    
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746


A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]