[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sed problem in latest CVS autoconf
From: |
Akim Demaille |
Subject: |
Re: sed problem in latest CVS autoconf |
Date: |
13 Oct 2000 12:23:03 +0200 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) |
| Hi,
Salut Nicolas!
| 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
As a first step, I'd like to change mktests.sh so that it is robust to
these failures: it is a maintainer tool, and I don't really care if
when rerun it can't refresh the output files, since that's only
typical of CVS.
But sure, afterwards I'll fix this sed call. Thanks, I'll keep you
informed.
Akim