From 226248d531b1b18a752bfdb4002e0a8002ec1f5e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 24 Mar 2004 17:36:57 +0000 Subject: [PATCH] (humblock): Support BLOCKSIZE envvar, as well as BLOCK_SIZE. --- lib/human.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/human.c b/lib/human.c index 36cfd73488..8062927078 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 { -- 2.47.2