diff options
author | Jim Meyering <jim@meyering.net> | 2004-03-24 17:36:57 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-03-24 17:36:57 +0000 |
commit | 226248d531b1b18a752bfdb4002e0a8002ec1f5e (patch) | |
tree | 97e52086974fbf48ef93b2c6d6125b0525694ef3 | |
parent | b3601c900a90e589af48a79d25bc129e19325e69 (diff) | |
download | coreutils-226248d531b1b18a752bfdb4002e0a8002ec1f5e.tar.xz |
(humblock): Support BLOCKSIZE envvar, as well as BLOCK_SIZE.
-rw-r--r-- | lib/human.c | 4 |
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 { |