From owner-freebsd-bugs@freebsd.org Fri Mar 30 13:57:41 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EDB1FF6F6B3 for ; Fri, 30 Mar 2018 13:57:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8355A694FE for ; Fri, 30 Mar 2018 13:57:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id BFECC104C3 for ; Fri, 30 Mar 2018 13:57:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w2UDvdhO025224 for ; Fri, 30 Mar 2018 13:57:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w2UDvd84025221 for freebsd-bugs@FreeBSD.org; Fri, 30 Mar 2018 13:57:39 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 227111] ls: -c option does nothing Date: Fri, 30 Mar 2018 13:57:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: cem@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Mar 2018 13:57:41 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227111 Conrad Meyer changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |cem@freebsd.org --- Comment #1 from Conrad Meyer --- 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.=