From owner-freebsd-stable@FreeBSD.ORG Sat Jul 13 16:56:13 2013 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 35931D52 for ; Sat, 13 Jul 2013 16:56:13 +0000 (UTC) (envelope-from alexvpetrov@gmail.com) Received: from mail-bk0-x233.google.com (mail-bk0-x233.google.com [IPv6:2a00:1450:4008:c01::233]) by mx1.freebsd.org (Postfix) with ESMTP id BB2BC193D for ; Sat, 13 Jul 2013 16:56:12 +0000 (UTC) Received: by mail-bk0-f51.google.com with SMTP id ji1so4125690bkc.38 for ; Sat, 13 Jul 2013 09:56:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=9d12fGjrJ6jiDIOpLCzfiSCIV9tZmqPGNfQgVf4ZIDI=; b=OIcJISpxJxGCs+AGY3DRkJahWSuJ+uvIU0LU0+/CXIzjK4m9rSFp0ibYdihg3t5+3/ HWmw1sRcglNKnTxkOeQFoKHGF0fKEZczLsV4a7AGlYWpiEQRW1jI5ozUuEZ0/F2mZrf9 SO68XEfMi4W5wLFIodH3kxZfkORA8r/hS0jwir+ka73ni9qVZy8QwZ9cj5ros8LiNahb sqB6umXmt32N1y49QFAQqMih47UkWumaub6if8OXz55eJpA5fIB0Wc9OLpE/AlaT65go rivEK37svIzISZx3T4gGycLnIExFvmTwyT1j0RV0gAzb+SOOWFJFXlgTRW/Q5Jv7+OBQ a60g== X-Received: by 10.205.12.67 with SMTP id ph3mr6834333bkb.87.1373734571752; Sat, 13 Jul 2013 09:56:11 -0700 (PDT) Received: from alex.super ([195.238.246.110]) by mx.google.com with ESMTPSA id hn4sm10233141bkc.2.2013.07.13.09.56.09 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 13 Jul 2013 09:56:10 -0700 (PDT) From: "Alex V. Petrov" To: Kevin Oberman Subject: Re: ls -U don't work? Date: Sun, 14 Jul 2013 00:56:05 +0800 Message-ID: <6087961.Jy4hGFOKS8@alex.super> User-Agent: KMail/4.10.5 (FreeBSD/9.2-PRERELEASE; KDE/4.10.5; amd64; ; ) In-Reply-To: References: <8704004.oreYQuEkVL@alex.super> <2813184.tAUhP2F1j4@alex.super> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: "freebsd-stable@freebsd.org Stable" , Sergey Kandaurov X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Jul 2013 16:56:13 -0000 =D0=92 =D0=BF=D0=B8=D1=81=D1=8C=D0=BC=D0=B5 =D0=BE=D1=82 13 =D0=B8=D1=8E= =D0=BB=D1=8F 2013 09:20:38 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0= =B0=D1=82=D0=B5=D0=BB=D1=8C Kevin Oberman =D0=BD=D0=B0=D0=BF=D0=B8=D1=81= =D0=B0=D0=BB: On Sat, Jul 13, 2013 at 3:30 AM, Alex V. Petrov wrote: =D0=92 =D0=BF=D0=B8=D1=81=D1=8C=D0=BC=D0=B5 =D0=BE=D1=82 13 =D0=B8=D1=8E= =D0=BB=D1=8F 2013 13:45:30 =D0=92=D1=8B =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0= =B0=D0=BB=D0=B8: > 2013/7/13 Alex V. Petrov <_alexvpetrov@gmail.com_>:> > subj:> > ls -U= l>> So, what's=20 the problem? Looking at code,> I'd suggest to try adding -t to actually= enable sorting,>=20 otherwise it just prints dates but not sorts.>> > total 0> > -rw-r--r--= 1 alex alex 0 13 =D0=B8=D1=8E=D0=BB=20 15:26 000> > -rw-r--r-- 1 alex alex 0 13 =D0=B8=D1=8E=D0=BB 15:25 11= 1> > -rw-r--r-- 1 alex alex 0 13 =D0=B8=D1=8E=D0=BB=20 15:25 222> > -rw-r--r-- 1 alex alex 0 13 =D0=B8=D1=8E=D0=BB 15:25 33= 3>> -t enables sorting (by modified=20 date by default),> -U further specifies to sort by birth time. What is the meaning of '-U'?I thought '-U' =3D '-tr' man ls:"-U Use time when file was created for sorting or printing.= " -----Alex V. Petrov No, '-U' tells ls(1) to use ctime for all timestamps. By default it use= s mtime. So 'ls -U' will=20 print ctime, but to sort by ctime you need 'ls -Ut' or 'ls -Utr'.=20 -- R. Kevin Oberman, Network EngineerE-mail: rkoberman@gmail.com[2] Yes. I knew already.Thank you. --=20 ----- Alex V. Petrov -------- [1] mailto:alexvpetrov@gmail.com [2] mailto:rkoberman@gmail.com