delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/10/04:06:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Reply-To: <Jan DOT Schormann AT BrainLAB DOT com>
From: "Jan Schormann" <Jan DOT Schormann AT BrainLAB DOT com>
To: <cygwin AT cygwin DOT com>
Subject: sed-4.1.2-1: backslash in 'i' and 'a' changed?
Date: Fri, 10 Sep 2004 10:06:06 +0200
Message-ID: <KCEOLMMHICICJKHPFOALOEILCIAA.Jan.Schormann@BrainLAB.com>
MIME-Version: 1.0
X-OriginalArrivalTime: 10 Sep 2004 08:06:06.0585 (UTC) FILETIME=[06186E90:01C4970D]
X-Spam-Status: No, hits=-102.6 required=6.0 tests=BAYES_20,MSGID_GOOD_EXCHANGE,RCVD_IN_ORBS,USER_IN_WHITELIST version=2.55
X-Spam-Level:
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)
X-IsSubscribed: yes

Hi,

try this:

 $ echo | sed -e 'a\\'

in sed-4.0.9-2 and sed-4.1.2-1: The old one produces a backslash,
the new one doesn't. Unfortunately, this breaks a makefile I use
for generating LaTeX output ...

Can this be a side effect of the change described below? Will this
be stable or is it a bug?

---------------------------------------------------------------
From: Corinna Vinschen
Subject: Updated: sed-4.1.2-1
Date: Sun, 22 Aug 2004 10:14:24 -0700

[...]

  when a \ is used to escape the character that would terminate an
operand
  of the s or y commands, the backslash is removed before the regex
is
  compiled.

[...]
---------------------------------------------------------------

Cheers,
	Jan.



--
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/

- Raw text -


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