From owner-freebsd-questions@freebsd.org Fri Aug 14 03:26:16 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DF4239A075E for ; Fri, 14 Aug 2015 03:26:16 +0000 (UTC) (envelope-from paul.j.smith0@gmail.com) Received: from mail-ob0-x233.google.com (mail-ob0-x233.google.com [IPv6:2607:f8b0:4003:c01::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A1BF81D8A for ; Fri, 14 Aug 2015 03:26:16 +0000 (UTC) (envelope-from paul.j.smith0@gmail.com) Received: by obbfr1 with SMTP id fr1so52439689obb.1 for ; Thu, 13 Aug 2015 20:26:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Wx8Vd8O52Mf/NYb7fWHdeo+8dPJmvyPOk4e0hTY/IvU=; b=O++iiYhxwWNhwuDX+czdK+oBdyd+ej71URDOLqECoLUjU+UyOI/B39aSpTQZJkd2Rm 4SxMMV6q1wuBCgJdA2ihS3SrHpQRegdgv3qeMb48fVnjp/QnloUihqAvdtlTusnKiJsn cdBqqd/1GHBNLI+IfylsFeYOBM7H7usahZVD7Bzxu09puw5bme4VkqZBAjuVu4OU++UX 7PZTE7DEIO3dT4IdM9eY7Rc6AnAK/SfAGMKyFJQVpY563fnmqAac7G0VfkZXZszfl/4I 0y8wIiCzVM2iMk2fkcySgcsv38ugn++S/UDo9kVM8xczCjZSYGVVP+pIqDEUeZg69lcv tXYw== MIME-Version: 1.0 X-Received: by 10.60.33.74 with SMTP id p10mr39307432oei.62.1439522775895; Thu, 13 Aug 2015 20:26:15 -0700 (PDT) Received: by 10.202.169.196 with HTTP; Thu, 13 Aug 2015 20:26:15 -0700 (PDT) In-Reply-To: <55CD23C7.9010803@ib-haakh.de> References: <55CD23C7.9010803@ib-haakh.de> Date: Thu, 13 Aug 2015 21:26:15 -0600 Message-ID: Subject: Re: a bug in /bin/ls From: Paul Smith To: "Dr. Andreas Haakh" Cc: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Aug 2015 03:26:17 -0000 On Thu, Aug 13, 2015 at 5:09 PM, Dr. Andreas Haakh wrote: > On: > FreeBSD Crabberio.Haakh.de 10.2-PRERELEASE FreeBSD 10.2-PRERELEASE #0 > r286580: Mon Aug 10 19:49:05 CEST 2015 > toor@Crabberio.Haakh.de:/usr/obj/usr/src/sys/CRABBERIO amd64 > > using the "-U"-flag in /bin/ls together with "-l" > leads to the following output > [...] > -rwxr--r-- 1 krabbe ibh 798720 1 Jan 1970 IMAG1562.jpg > -rw-r--r-- 1 krabbe ibh 579493 1 Jan 1970 IMAG1714.jpg > [...] > > and the sorting is not affected by the flag (still by name). > > >From the man page: -U Use time when file was created for sorting or printing. -u Use time of last access, instead of time of last modification of the file for sorting (-t) or printing (-l). -t Sort by descending time modified (most recently modified first). . . . Does something like ls -Ult give you what you want? My interpretation is that -u and -U need to be combined with -t or -l. I think the -c option works the same way. Did you get different output on a previous FreeBSD version? Paul