X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=2.4 required=5.0 tests=AWL,BAYES_00,BOTNET X-Spam-Check-By: sourceware.org MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=UTF-8; format=flowed Message-id: <4B7E1EC7.9060703@cygwin.com> Date: Fri, 19 Feb 2010 00:16:55 -0500 From: "Larry Hall (Cygwin)" Reply-to: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 To: cygwin AT cygwin DOT com Subject: Re: 1.7.1: unable to run the a bash script resides in chinese path using: c:\cygwin\bin\bash --login script. References: In-reply-to: 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 On 02/18/2010 11:40 PM, Hongyi Zhao wrote: > 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