X-Spam-Check-By: sourceware.org Date: Mon, 12 Jun 2006 13:25:53 -0700 From: George 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Precedence: bulk List-Unsubscribe: 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 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/