sed portability

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

 



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


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux