mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-20 18:56:39 +02:00
expr: clarify error message
* src/expr.c (eval4, eval3): Clarify that expr expects integers, and not the broader category of numbers. * tests/misc/expr: Update test accordingly. Suggested by Dan Jacobson.
This commit is contained in:
@@ -70,7 +70,7 @@ my @Tests =
|
||||
|
||||
|
||||
# This erroneously succeeded and output `3' before 2.0.12.
|
||||
['fail-a', '3 + -', {ERR => "$prog: non-numeric argument\n"},
|
||||
['fail-a', '3 + -', {ERR => "$prog: non-integer argument\n"},
|
||||
{EXIT => 2}],
|
||||
|
||||
# This erroneously succeeded before 5.3.1.
|
||||
|
||||
Reference in New Issue
Block a user