summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-08-13 09:58:47 +0200
committerJim Meyering <meyering@redhat.com>2008-08-14 14:37:49 +0200
commit081ebb2822f0d9256c714302f2e83eb4f198ba6c (patch)
treeef7fa49d331707b479ed557fab5420ecceeca37e
parent22999697b81acf3e8683c95c310a36926e7af96f (diff)
downloadcoreutils-081ebb2822f0d9256c714302f2e83eb4f198ba6c.tar.xz
"expr --bignum 1" now fails when expr is built without libgmp
* src/expr.c (main): When --bignum is requested, yet expr was built without libgmp, exit nonzero (3) in addition to giving a diagnostic.
-rw-r--r--src/expr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c
index 524ec9301..dc4161602 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -292,7 +292,8 @@ main (int argc, char **argv)
#if HAVE_GMP
mode = MP_ALWAYS;
#else
- error (0, 0, _("arbitrary-precision support is not available"));
+ error (EXPR_FAILURE, 0,
+ _("arbitrary-precision support is not available"));
#endif
break;