Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: From: "Masterson, Dave" To: "'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) Content-Type: text/plain; charset="iso-8859-1" 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