summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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
{