[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sed problem in latest CVS autoconf
From: |
Nicolas Joly |
Subject: |
sed problem in latest CVS autoconf |
Date: |
Fri, 13 Oct 2000 11:10:38 +0200 |
User-agent: |
Mutt/1.2.4i |
Hi,
I just tested CVS autoconf on my Tru64 Unix v5.0a workstation and found
a small sed problem with `?' metacharacter. Most sed implementations rely
on BRE regexp that do not support `?', but GNU sed does allow its use.
in tests/mktests.sh:
[...]
# Get the list of macros which are defined in Autoconf level.
# Get rid of the macros we are not interested in.
cat $src |
sed -ne 's/^A[CU]_DEFUN\(_ONCE\)\?(\[*\([a-zA-Z0-9_]*\).*$/\2/p' |
sort |
uniq |
egrep -v "$syntax_exclude_egrep" >acdefuns
[...]
address@hidden [~]> uname -a
OSF1 medusa.sis.pasteur.fr V5.0 1094 alpha
address@hidden [~]> echo "foobar" | sed 's/foo\(t\)\?bar/XXX/'
foobar
address@hidden [~]> echo "footbar" | sed 's/foo\(t\)\?bar/XXX/'
footbar
address@hidden [~]> echo "footbar" | sed 's/foo\(t\)bar/XXX/'
XXX
address@hidden [~]> uname -a
Linux xian 2.0.36 #2 Sun Feb 21 15:55:27 EST 1999 i686 unknown
address@hidden [~]> echo "foobar" | sed 's/foo\(t\)\?bar/XXX/'
XXX
address@hidden [~]> echo "footbar" | sed 's/foo\(t\)\?bar/XXX/'
XXX
address@hidden [~]> echo "footbar" | sed 's/foo\(t\)bar/XXX/'
XXX
--
Nicolas Joly
Informatique Scientifique
Institut Pasteur, Paris.
- sed problem in latest CVS autoconf,
Nicolas Joly <=