X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=AWL,BAYES_00,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Hongyi Zhao Subject: 1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script. Date: Fri, 19 Feb 2010 12:40:15 +0800 Lines: 39 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Note-from-DJ: This may be spam Hi all, 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 following contents: ----------- @echo off C:\cygwin\bin\bash --login "%~dp0myscript" ---------- 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 -------------------------- 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 FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple