This is the mail archive of the
cygwin
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: <t94sn59ntooeal9hc0a25hkk7ntphg99cf@4ax.com>
- Reply-to: cygwin at cygwin dot com
On 02/18/2010 11:40 PM, Hongyi Zhao wrote:
<snip>
When I double click on this dos batch, I'll meet the following errors:
--------------------------
cygwin warning:
MS-DOS style path detected:
"F:\zhaohs\Desktop\éççéåå\myscript"
Preferred POSIX equivalent is:
"F:/zhaohs/Desktop/éççéåå/myscript"
CYGWIN environment variable option "nodosfilewarning" turns off this
warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
/usr/bin/bash: "F:\zhaohs\Desktop\æææç\myscript": No such file or
directory
--------------------------
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
_____________________________________________________________________
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: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple