[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sed portability
From: |
Ralf Wildenhues |
Subject: |
sed portability |
Date: |
Thu, 30 Dec 2004 14:18:10 +0100 |
User-agent: |
Mutt/1.4.1i |
Contrary to what
info '(Autoconf)Limitations of Usual Tools'
has to say about the `sed' command,
| @example
| sed -e @var{instruction-1} \
| -e @var{instruction-2}
| @end example
is not equivalent to
| @example
| sed @var{instruction-1};@var{instruction-2}
| @end example
everywhere. On AIX (the system I tested has only this `sed' command
installed), the second works differently:
$ echo a | sed '/x/{p;};d'
a
$ echo a | sed -e '/x/{p;}' -e d
$
This is in conformance to the information given in the "sed FAQ"[1]
(I have not tested the other requirements mentioned there) and also
conforming to SUSv3. Libtool was hit by this bug.
Regards,
Ralf
[1] http://sed.sourceforge.net/sedfaq6.html#s6.7.1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- sed portability,
Ralf Wildenhues <=