Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <3767F4A1.2CFAF187@acm.org> Date: Wed, 16 Jun 1999 15:01:53 -0400 From: "D. Richard Hipp" Organization: Hwaci X-Mailer: Mozilla 3.0Gold (X11; U; Linux 2.0.36 i686) MIME-Version: 1.0 To: cygwin AT sourceware DOT cygnus DOT com Subject: "sed" bug? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit The following script works under Linux but fails on Cygwin20 running under Windows95: #! /bin/sh echo 'E:/a/b/c' | sed 's,^\([a-zA-Z]\):/,//\1/,' Under Linux the output is "//E/a/b/c". Under Cygwin20, the output is "E:/a/b/c". That's if I run the script from a file. (The same file -- samba mounted off of the Linux machine.) If I type the command in directly at the shell prompt, it works correctly on both machines. Obviously, I'm trying to changes a pathname to the Cygwin format from the windows format. This is in the middle of a "configure" script. I've tried lots of things to work around this, but with no success. The problem seems to be in the "\(" and "\)" of the expression. Does anybody know of a work-around? Am I doing something stupid here? Replys to drh AT acm DOT org are appreciated. -- D. Richard Hipp -- drh AT acm DOT org -- http://www.hwaci.com/drh/ -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com