autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: document another sed portability problem


From: Ralf Wildenhues
Subject: Re: document another sed portability problem
Date: Mon, 14 Aug 2006 22:48:35 +0200
User-agent: Mutt/1.5.12-2006-07-14

* Ralf Wildenhues wrote on Mon, Aug 14, 2006 at 10:44:56PM CEST:
> 
> More worryingly though, Tru64 5.1 sed does not parse the examples at
> all.  Weirdly, it seems that the `a' command does not work right after
> the `-e' option:

Ouch, I made an unintended error when copy and pasting:

> $ echo foo | sed -e 'a
> bar'
> sed: Function a cannot be parsed.

Above should have been:
$ echo foo | sed -e 'a\
bar'
sed: Function a cannot be parsed.
$

> $ echo foo | sed 'a\
> bar'
> foo
> bar
> $ echo foo | sed -e 'p;a\
> bar'
> foo
> foo
> bar
> $ echo foo | sed -e '
> a\
> bar'
> foo
> bar
> $




reply via email to

[Prev in Thread] Current Thread [Next in Thread]