[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnulib] human.c merge from coreutils
From: |
Paul Eggert |
Subject: |
[Bug-gnulib] human.c merge from coreutils |
Date: |
Tue, 30 Mar 2004 23:26:16 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
I installed this:
2004-03-30 Paul Eggert <address@hidden>
* lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
This is for compatibility with BSD.
Index: lib/human.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/human.c,v
retrieving revision 1.23
diff -p -u -r1.23 human.c
--- lib/human.c 14 Oct 2003 20:08:26 -0000 1.23
+++ lib/human.c 31 Mar 2004 07:24:17 -0000
@@ -1,7 +1,7 @@
/* human.c -- print human readable file size
- Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free
- Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
+ Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -428,7 +428,9 @@ humblock (char const *spec, uintmax_t *b
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
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnulib] human.c merge from coreutils,
Paul Eggert <=