From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28459 invoked by alias); 24 Jul 2004 18:10:57 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 28451 invoked from network); 24 Jul 2004 18:10:56 -0000 Received: from unknown (HELO mrelay3.uni-hannover.de) (130.75.2.41) by sourceware.org with SMTP; 24 Jul 2004 18:10:56 -0000 Received: from www.pmp.uni-hannover.de (www.pmp.uni-hannover.de [130.75.117.2]) by mrelay3.uni-hannover.de (8.12.10/8.12.10) with ESMTP id i6OIArbE022357 for ; Sat, 24 Jul 2004 20:10:53 +0200 (MEST) Received: from [127.0.0.1] (theq.pmp.uni-hannover.de [130.75.117.4]) by www.pmp.uni-hannover.de (Postfix) with ESMTP id 9AFD527E for ; Sat, 24 Jul 2004 20:10:48 +0200 (CEST) Message-ID: <4102A623.6090103@scytek.de> Date: Sat, 24 Jul 2004 21:34:00 -0000 From: Volker Quetschke Reply-To: cygwin@cygwin.com User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Mangling of '\\' by cygwin dll X-Enigmail-Version: 0.84.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig531645C4D7DE374C5D2DE3C2" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.2.2 (mrelay3.uni-hannover.de [130.75.2.41]); Sat, 24 Jul 2004 20:10:53 +0200 (MEST) X-Scanned-By: MIMEDefang 2.42 X-IsSubscribed: yes X-SW-Source: 2004-07/txt/msg00956.txt.bz2 --------------enig531645C4D7DE374C5D2DE3C2 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 827 Hi, I run into a strange problem while using sed from a cmd.exe shell. The problem is not sed specific and the following lines demonstrate it with /bin/echo. From cmd.exe: C:\>\cygwin\bin\echo.exe '1 \ 2 \\ 3 \\\ 4 \\\\ 5 \\\\\ 6 \t' 1 \ 2 \ 3 \\ 4 \\ 5 \\\ 6 \t It looks like each \\ is translated into \. Like escaping for special characters, but it doesn't happen for single \. This effect doesn't happen in bash: $ /bin/echo.exe '1 \ 2 \\ 3 \\\ 4 \\\\ 5 \\\\\ 6 \t' 1 \ 2 \\ 3 \\\ 4 \\\\ 5 \\\\\ 6 \t Bug or feature? I didn't find anything about this in . Ah, yes, $ uname -s -r CYGWIN_NT-5.1 1.5.10(0.116/4/2) Volker -- PGP/GPG key (ID: 0x9F8A785D) available from wwwkeys.de.pgp.net key-fingerprint 550D F17E B082 A3E9 F913 9E53 3D35 C9BA 9F8A 785D --------------enig531645C4D7DE374C5D2DE3C2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 254 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBAqYnPTXJup+KeF0RAiU+AJwLB84F4YQNyK2cBog6IQwWyT4RYgCfRy3E HX4fis6rczZBrKcJB0+HpJY= =H4te -----END PGP SIGNATURE----- --------------enig531645C4D7DE374C5D2DE3C2--