www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/02/18/23:40:52

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 <hongyi DOT zhao AT gmail DOT com>
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: <t94sn59ntooeal9hc0a25hkk7ntphg99cf@4ax.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
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019