[Bug 227111] ls: -c option does nothing
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Mar 30 13:57:41 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227111
Conrad Meyer <cem at freebsd.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |cem at freebsd.org
--- Comment #1 from Conrad Meyer <cem at freebsd.org> ---
It doesn't do nothing -- it changes the printed time field and sorted-by time
field to be the "changed" date. Even with plain 'ls -l' vs 'ls -cl' I can
observe this on my directories. E.g.,
$ ls -l nacl-20110221.tar.bz2
-rw-r--r-- 1 conrad conrad 163415 Feb 20 2011 nacl-20110221.tar.bz2
$ ls -lc nacl-20110221.tar.bz2 ^^^^^^^^^^^^
-rw-r--r-- 1 conrad conrad 163415 Mar 10 11:02 nacl-20110221.tar.bz2
^^^^^^^^^^^^
$ stat -x nacl-20110221.tar.bz2
File: "nacl-20110221.tar.bz2"
Size: 163415 FileType: Regular File
Mode: (0644/-rw-r--r--) Uid: ( 1001/ conrad) Gid: ( 1001/ conrad)
Device: 0,70 Inode: 35232639 Links: 1
Access: Sat Mar 10 11:02:59 2018
Modify: Sun Feb 20 17:49:40 2011
Change: Sat Mar 10 11:02:59 2018
For sorting, it's a modifier flag for 't', which actually induces time-based
sorting. Try 'ls -lt' vs 'ls -clt'.
The documentation could be more clear.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list