bug-sh-utils
[Top][All Lists]
Advanced

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

sanity.sh fails with GNU sh-utils 2.0.x


From: Pavel Roskin
Subject: sanity.sh fails with GNU sh-utils 2.0.x
Date: Mon, 16 Dec 2002 19:04:13 -0500 (EST)

Hello!

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.

I don't know if this check should be added to sanity.sh and whether we
should ask users to downgrade of wait for the next version of sh-utils.

-- 
Regards,
Pavel Roskin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]