GNU bug report logs - #14525
ls -k produced no size, ls -lk lists in bytes? What's up w/k?

Previous Next

Package: coreutils;

Reported by: Linda Walsh <coreutils <at> tlinx.org>

Date: Sat, 1 Jun 2013 01:05:01 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Pádraig Brady <P <at> draigBrady.com>
To: Eric Blake <eblake <at> redhat.com>
Cc: 14525 <at> debbugs.gnu.org, Paul Eggert <eggert <at> cs.ucla.edu>, Linda Walsh <coreutils <at> tlinx.org>
Subject: bug#14525: ls -k produced no size, ls -lk lists in bytes?  What's up w/k?
Date: Tue, 26 Nov 2013 15:53:58 +0000
[Message part 1 (text/plain, inline)]
On 06/04/2013 08:40 PM, Eric Blake wrote:
> On 06/02/2013 12:47 PM, Paul Eggert wrote:
>> On 06/01/2013 02:54 PM, Linda Walsh wrote:
>>> ... removing features that exceeded posix
>>
>> As I explained to you in my previous message, no features
>> were removed.  Merely the option syntax was changed.
>>
>>> What switch(es) are supposed to be used to choose what units to display
>>> sizes on the long listing?
>>
>> The --block-size option.  See:
>>
>> http://www.gnu.org/software/coreutils/manual/coreutils.html#Block-size
>>
>> Coreutils already has all the features that you asked for
>> in your email.
> 
> I just noticed that we DO have a doc bug; in 'info coreutils "Block
> size"', we incorrectly claim:
> 
>>> Block size defaults can be overridden by an explicit
>>> `--block-size=SIZE' option.  The `-k' option is equivalent to
>>> `--block-size=1K', which is the default unless the `POSIXLY_CORRECT'
>>> environment variable is set. 
> 
> which, while still true for du and df, is now false for ls.
> 

Doc update attached.

thanks,
Pádraig.
[ls-k-docs.diff (text/x-patch, attachment)]

This bug report was last modified 6 years and 215 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.