Re: sanity.sh fails with GNU sh-utils 2.0.x
Jim Meyering <[email protected]> Tue, 17 Dec 2002 16:38:46 +0100
| Newsgroups | gmane.comp.gnu.sh-utils.bugs,gmane.comp.version-control.cvs.general |
|---|---|
| Message-ID | <[email protected]> |
Pavel Roskin <[email protected]> wrote: > sanity.sh from the current CVS fails on Red Hat 8.0 in version-1. It > turns out that the version of expr from sh-utils 2.0.12 has a problem. > If I use expr from sh-utils 1.16, the test is OK. > > The problem is that ".*" matches the newline. Here's the test: > > ========================================= > # expr from GNU sh-utils 2.0.x: ".*" matches newline. > if $EXPR 'a > b' : 'a.* > b' >/dev/null; then > : good, it works > else > echo 'Running these tests requires an "expr" program that can handle' >&2 > echo 'multi-line patterns. It looks like you have buggy expr from' >&2 > echo 'GNU sh-utils 2.0.x.' >&2 > exit 1 > fi > ========================================= > > If I add this test to sanity.sh, expr 2.0.12 doesn't pass it, but 1.16 > does. Unfortunetely, expr from sh-utils 2.0.15 has the same problem as > 2.0.12. I don't know, maybe it's intended to be like that. I'm using C > locale, but setting it to en_US has no effect. Hi Pavel, Thanks for the report. Using the latest test release (compiled against libc-2.3.1), I can't reproduce that problem. And there haven't been any significant changes to expr.c since 2.0.15. Would you please see the same problem using the latest test release? ftp://alpha.gnu.org/gnu/fetish/coreutils-4.5.4.tar.bz2 (coreutils is the union of fileutils, textutils, and sh-utils) If you *do* reproduce your problem, please let me know whether your build used lib/regex.o or not, and include the output of running /lib/libc.so.*. Jim