(humblock): Support BLOCKSIZE envvar, as well as BLOCK_SIZE.
authorJim Meyering <jim@meyering.net>
Wed, 24 Mar 2004 17:36:57 +0000 (17:36 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 24 Mar 2004 17:36:57 +0000 (17:36 +0000)
lib/human.c

index 36cfd7348876047fce07f7d0926eefb82ce278ef..806292707813518c33264f555540457c41936166 100644 (file)
@@ -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
     {