delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/05/14:14:45

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <C322F78942E6D311AF8800D0B73C4FD8830D5C@CUPEX3.rational.com>
From: "Masterson, Dave" <dmasters AT rational DOT com>
To: "'cygwin AT sources DOT redhat DOT com'" <cygwin AT sources DOT redhat DOT com>
Subject: Handling Windows-style filenames (ie. '/' vs. '\')
Date: Thu, 5 Oct 2000 11:12:26 -0700
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

I work in a ClearCase environment on Windows-NT.  I've installed Cygwin and
I'd like to use it more for my work.  My problem is that NT-ClearCase
assumes Windows-style filenames are passed to its commands (ie. they use
'\').  The problem with this in Cygwin BASH is that a name like C:\Dir\File
becomes C:DirFile after BASH touches it.  I can use the Cygpath command to
convert from UNIX filenames to Windows filenames, but this isn't very useful
in a shell script if the shell (BASH) is going to strip the backslashes.

Does cygpath have options to double (or triple?) the backslashes so that
they will get through the shell?  I think this option is necessary because
this will not work:

	cygpath -w /mnt/c/Dir/File | sed -e 's;\\;\\\\;' | xargs cleartool
describe

Any other tricks to handling this?

David Masterson
*	Rational Software
*	18880 Homestead Rd.
*	Cupertino, CA  95014
*	(408) 863-5150
*	dmasters AT rational DOT com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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