a bug in /bin/ls
Paul Smith
paul.j.smith0 at gmail.com
Fri Aug 14 03:26:17 UTC 2015
On Thu, Aug 13, 2015 at 5:09 PM, Dr. Andreas Haakh
<bugReporter at ib-haakh.de> wrote:
> On:
> FreeBSD Crabberio.Haakh.de 10.2-PRERELEASE FreeBSD 10.2-PRERELEASE #0
> r286580: Mon Aug 10 19:49:05 CEST 2015
> toor at 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
More information about the freebsd-questions
mailing list