From: Jim Meyering Date: Wed, 24 Mar 2004 17:36:57 +0000 (+0000) Subject: (humblock): Support BLOCKSIZE envvar, as well as BLOCK_SIZE. X-Git-Tag: v5.3.0~1944 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=226248d531b1b18a752bfdb4002e0a8002ec1f5e;p=thirdparty%2Fcoreutils.git (humblock): Support BLOCKSIZE envvar, as well as BLOCK_SIZE. --- 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 {