Eric Blake <ebb9@xxxxxxx> writes: > According to Russ Allbery on 3/12/2009 10:32 PM: >> 2. On HP-UX 11.23, regexp matching with expr does not allow multiple sub- >> expressions: >> >> bash-3.1$ expr 'Xfoo' : 'X\(f\(oo\)*\)$' >> expr: More than one '\(' was used. > Ouch. I don't have access to HP-UX to verify, but this means we need to > audit autoconf source to make sure we don't violate this restriction. I unfortunately have no access to HP-UX any more either and hence can't confirm this one. >> 3. On GNU/Linux the regexp "$", when used with older versions of expr, >> matches newlines embedded in the match string: >> >> bash-3.1$ baz='foo >> > bar' >> bash-3.1$ expr "X$baz" : 'X\(foo\)$' || echo baz >> foo > > I'm assuming this was from an older version of coreutils? Can someone > determine 'expr --version' in the broken case, to see when it was fixed? rra@lbdns1:~$ baz='foo > bar' rra@lbdns1:~$ expr "X$baz" : 'X\(foo\)$' || echo baz foo rra@lbdns1:~$ expr --version expr (GNU coreutils) 5.2.1 exodus:~> bash rra@exodus:~$ baz='foo > bar' rra@exodus:~$ expr "X$baz" : 'X\(foo\)$' || echo baz foo rra@exodus:~$ expr --version expr (GNU coreutils) 5.97 eagle@windlord:~$ baz='foo > bar' eagle@windlord:~$ expr "X$baz" : 'X\(foo\)$' || echo baz baz eagle@windlord:~$ expr --version expr (GNU coreutils) 6.10 There's no mention that I can find in the coreutils NEWS file, though, in a quick search for "expr". -- Russ Allbery (rra@xxxxxxxxxx) <http://www.eyrie.org/~eagle/> _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf