delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/12/16:26:20

X-Spam-Check-By: sourceware.org
Date: Mon, 12 Jun 2006 13:25:53 -0700
From: George <d1945 AT sbcglobal DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: Could not touch file when specify full path in Cygwin in .bat file
Message-ID: <20060612202553.GA1020@home>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <38EA73F8F9C1844FA2ECE82DEE237F3C224E34 AT CORPUSMX40B DOT corp DOT emc DOT com>
Mime-Version: 1.0
In-Reply-To: <38EA73F8F9C1844FA2ECE82DEE237F3C224E34@CORPUSMX40B.corp.emc.com>
User-Agent: Mutt/1.4.2.1i
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 Mon, Jun 12, 2006 at 03:22:05PM -0400, wu_xiaomin AT emc DOT com wrote:
> Hi, Cygwin support group,
> 
> I have problem to touch a file when specify the full path. Here are 
> some examples. MKS works fine
> 
> -- Filename with special characters
>
> [snip]
>

Somewhere a kitten died.

A couple of comments.

1.  If you're going to make effective use of Cygwin, you might want to 
consider using POSIX paths and try and forget everything you learned 
about DOS and cmd.exe invocations.  Put another way, using Cygwin will 
make your life easer, and you'll be able to run faster and jump higher, 
but only if you take advantage of the features it offers.  I'm convinced 
that you had as much trouble typing/tabbing through that noise as I did 
trying to read it. 

2.  Since you know the file name contains "special characters", you 
should know that each such character needs first to be escaped; 
otherwise, it will be interpreted by the shell as ... well ... special.  
To the shell, they're special.  To everyone else, they're somewhere 
between cute and pathological.  I would advise against making regular 
use of such characters where possible.

The following should get you started:

$ man -P 'less -p QUOTING' bash 

Regards.

-- 
George

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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