summaryrefslogtreecommitdiff
path: root/lib/human.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-03-24 17:36:57 +0000
committerJim Meyering <jim@meyering.net>2004-03-24 17:36:57 +0000
commit226248d531b1b18a752bfdb4002e0a8002ec1f5e (patch)
tree97e52086974fbf48ef93b2c6d6125b0525694ef3 /lib/human.c
parentb3601c900a90e589af48a79d25bc129e19325e69 (diff)
downloadcoreutils-226248d531b1b18a752bfdb4002e0a8002ec1f5e.tar.xz
(humblock): Support BLOCKSIZE envvar, as well as BLOCK_SIZE.
Diffstat (limited to 'lib/human.c')
-rw-r--r--lib/human.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/human.c b/lib/human.c
index 36cfd7348..806292707 100644
--- a/lib/human.c
+++ b/lib/human.c
@@ -428,7 +428,9 @@ humblock (char const *spec, uintmax_t *block_size, int *options)
int i;
int opts = 0;
- if (! spec && ! (spec = getenv ("BLOCK_SIZE")))
+ if (! spec
+ && ! (spec = getenv ("BLOCK_SIZE"))
+ && ! (spec = getenv ("BLOCKSIZE")))
*block_size = default_block_size ();
else
{