This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sed-4.1.2-1: backslash in 'i' and 'a' changed?


On Sep 10 10:06, Jan Schormann wrote:
> 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?

I'd guess this is a stable fix.  From `info sed':

  `a\'
  `TEXT'
       [...]
       Escape sequences in TEXT are processed, so you should use `\\' in
       TEXT to print a single backslash.

It looks like the old behaviour is a bug, not the new one.  Try
  echo | sed -e 'a\\\'
with the old version.  It will also print just one backslash.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]