This is the mail archive of the
mailing list for the Cygwin project.
Re: 1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script.
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 19 Feb 2010 00:16:55 -0500
- Subject: Re: 1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script.
- References: <firstname.lastname@example.org>
- Reply-to: cygwin at cygwin dot com
On 02/18/2010 11:40 PM, Hongyi Zhao wrote:
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
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 http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple