projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3601c9
)
(humblock): Support BLOCKSIZE envvar, as well as BLOCK_SIZE.
author
Jim Meyering
<jim@meyering.net>
Wed, 24 Mar 2004 17:36:57 +0000
(17:36 +0000)
committer
Jim Meyering
<jim@meyering.net>
Wed, 24 Mar 2004 17:36:57 +0000
(17:36 +0000)
lib/human.c
patch
|
blob
|
history
diff --git
a/lib/human.c
b/lib/human.c
index 36cfd7348876047fce07f7d0926eefb82ce278ef..806292707813518c33264f555540457c41936166 100644
(file)
--- 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
{