1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script.
Larry Hall (Cygwin)
reply-to-list-only-lh@cygwin.com
Fri Feb 19 05:17:00 GMT 2010
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
More information about the Cygwin
mailing list