GNU bug report logs -
#13902
BUG : Option -k / --kibibytes no longer works with ls
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13902 in the body.
You can then email your comments to 13902 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#13902
; Package
coreutils
.
(Fri, 08 Mar 2013 08:12:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Sebastien <sebastien.godard <at> orange.fr>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Fri, 08 Mar 2013 08:12:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
This is to tell you that option -k (--kibibytes) no longer works with
the ls command.
Sample output:
$ ls -l
total 81644
drwxrwxr-x. 23 root root 4096 Dec 3 20:22 linux-3.7-rc8
-rw-rw-r--. 1 seb seb 83581254 Dec 5 21:26 linux-3.7-rc8.tar.bz2
drwx------. 2 root root 16384 May 9 2012 lost+found
$ ls -lk
total 81644
drwxrwxr-x. 23 root root 4096 Dec 3 20:22 linux-3.7-rc8
-rw-rw-r--. 1 seb seb 83581254 Dec 5 21:26 linux-3.7-rc8.tar.bz2
drwx------. 2 root root 16384 May 9 2012 lost+found
Tested on: Fedora 18 "Spherical Cow" with ls (GNU coreutils) 8.17.
Regards,
--
Sebastien GODARD
sebastien.godard <at> orange.fr
Added tag(s) notabug.
Request was from
Eric Blake <eblake <at> redhat.com>
to
control <at> debbugs.gnu.org
.
(Fri, 08 Mar 2013 13:08:01 GMT)
Full text and
rfc822 format available.
Reply sent
to
Eric Blake <eblake <at> redhat.com>
:
You have taken responsibility.
(Fri, 08 Mar 2013 13:08:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Sebastien <sebastien.godard <at> orange.fr>
:
bug acknowledged by developer.
(Fri, 08 Mar 2013 13:08:02 GMT)
Full text and
rfc822 format available.
Message #12 received at 13902-done <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
tag 13902 notabug
thanks
On 03/08/2013 01:09 AM, Sebastien wrote:
> Hi,
>
> This is to tell you that option -k (--kibibytes) no longer works with
> the ls command.
Thanks for the report. However, according to NEWS, this was a bug fix
of coreutils 8.15:
ls's -k option no longer affects how ls -l outputs file sizes.
It now affects only the per-directory block counts written by -l,
and the sizes written by -s. This is for compatibility with BSD
and with POSIX 2008. Because -k is no longer equivalent to
--block-size=1KiB, a new long option --kibibyte stands for -k.
[bug introduced in coreutils-4.5.4]
>
> Sample output:
>
> $ ls -l
> total 81644
> drwxrwxr-x. 23 root root 4096 Dec 3 20:22 linux-3.7-rc8
> -rw-rw-r--. 1 seb seb 83581254 Dec 5 21:26 linux-3.7-rc8.tar.bz2
> drwx------. 2 root root 16384 May 9 2012 lost+found
>
> $ ls -lk
> total 81644
> drwxrwxr-x. 23 root root 4096 Dec 3 20:22 linux-3.7-rc8
> -rw-rw-r--. 1 seb seb 83581254 Dec 5 21:26 linux-3.7-rc8.tar.bz2
> drwx------. 2 root root 16384 May 9 2012 lost+found
This is the correct behavior required by POSIX when using 'ls -k'. You
were relying on an alternate behavior, where it was a bug that -k
exposed the alternate behavior; but that alternate behavior is still
available to you if you use the proper spelling:
ls -l --block-size=k
Therefore, I'm closing this as not a bug. Feel free to add further
comments or questions.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[signature.asc (application/pgp-signature, attachment)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 06 Apr 2013 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 134 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.