diff options
author | Jim Meyering <meyering@redhat.com> | 2008-08-13 09:58:47 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-08-14 14:37:49 +0200 |
commit | 081ebb2822f0d9256c714302f2e83eb4f198ba6c (patch) | |
tree | ef7fa49d331707b479ed557fab5420ecceeca37e | |
parent | 22999697b81acf3e8683c95c310a36926e7af96f (diff) | |
download | coreutils-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.c | 3 |
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; |