www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT 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 AT cygwin DOT com |
From: | Hongyi Zhao <hongyi DOT zhao AT gmail 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. |
Date: | Fri, 19 Feb 2010 15:38:20 +0800 |
Lines: | 23 |
Message-ID: | <c6fsn5ln6bdtgr86bp3ri44ui48kf57ica@4ax.com> |
References: | <t94sn59ntooeal9hc0a25hkk7ntphg99cf AT 4ax DOT com> |
Mime-Version: | 1.0 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On Fri, 19 Feb 2010 12:40:15 +0800, Hongyi Zhao <hongyi DOT zhao AT gmail DOT com> 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |