This is the mail archive of the
cygwin
mailing list for the Cygwin project.
sed-4.1.2-1: backslash in 'i' and 'a' changed?
- From: "Jan Schormann" <Jan dot Schormann at BrainLAB dot com>
- To: <cygwin at cygwin dot com>
- Date: Fri, 10 Sep 2004 10:06:06 +0200
- Subject: sed-4.1.2-1: backslash in 'i' and 'a' changed?
- Reply-to: <Jan dot Schormann at BrainLAB dot com>
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/