X-Recipient: archive-cygwin@delorie.com X-SWARE-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL,BAYES_00,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org To: cygwin@cygwin.com From: Hongyi Zhao Subject: Re: 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 15:38:20 +0800 Lines: 23 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com On Fri, 19 Feb 2010 12:40:15 +0800, Hongyi Zhao wrote: >@echo off >C:\cygwin\bin\bash --login "%~dp0myscript" I've found a more strange thing: If I change the batch file into the following form, then it will be run smoothly: @echo off C:\cygwin\bin\bash --login %~dp0myscript The QUOTATION MARK in the former is used to deal with the whitespaces appearing in the myscript's pathname, though this is relatively rare case. But in the latter case, if there're whitespaces in the myscript's pathname, the batch will fail to run. Any hints on the above issues, and what's the more better, universal solution for my problem? Thanks in advance. -- .: 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