This is the mail archive of the
mailing list for the Cygwin project.
1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script.
- From: Hongyi Zhao <hongyi dot zhao at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 19 Feb 2010 12:40:15 +0800
- Subject: 1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script.
I upgrade my cygwin from 1.5 to 1.7.1 and meet this issue:
Unable to run the a bash script resides in chinese path using:
c:\cygwin\bin\bash --login myscript.
For detail, the bash script, i.e., myscript and the dos batch file
which is used to invoke the myscript are both reside in a directory
that contains the Chinese characters. The dos batch file has the
C:\cygwin\bin\bash --login "%~dp0myscript"
When I double click on this dos batch, I'll meet the following errors:
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
Furthmore, if I open the cygwin terminal and manually switched into
that directory to run the myscript directly, it will no problem.
What should I do to solve this problem?
.: Hongyi Zhao [ hongyi.zhao AT gmail.com ] Free as in Freedom :.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple