Date: Fri, 30 Mar 2018 13:57:38 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 227111] ls: -c option does nothing Message-ID: <bug-227111-8-tBVX9j1cSW@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-227111-8@https.bugs.freebsd.org/bugzilla/> References: <bug-227111-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227111 Conrad Meyer <cem@freebsd.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cem@freebsd.org --- Comment #1 from Conrad Meyer <cem@freebsd.org> --- It doesn't do nothing -- it changes the printed time field and sorted-by ti= me 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/ conr= ad) 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227111-8-tBVX9j1cSW>