Willie Wong schreef:
> On Sat, Jan 07, 2006 at 04:17:11PM +0100, Penguin Lover Holly Bostick
> squawked:
> 
>> (how do you get ls to also include the @#$%#$ *year*??)
> 
> 
> Sorry, couldn't help with the rest of your problem, but I think it is
>  assumed that ls will display the year only for files older than a
> year old. Quite clever, in my opinion.

OK, I see what you mean-- or maybe I don't:

la ~/docs/
totaal 3714
drwxrwxr-x  15 motub somegroup    1136 okt 28 00:56 .
drwxrwxr-x  16 motub somegroup    1720 nov 21 02:46 ..
-rw-r--r--   1 motub somegroup 1292758 okt 18 20:17 autosc102.exe
drwxr-xr-x   6 motub somegroup     192 okt 30 15:25 books
-r-xr-xr-x   1 motub somegroup    2778 jan 27  2003 Buddies.xml
drwxrwxr-x   2 motub somegroup    1216 jan  6 22:42 cmds
-rw-rw-r--   1 motub somegroup     581 jan 31  2005 computeruniverse_rma.txt
drwxrwxr-x   5 motub somegroup    3192 nov 21 16:55 config
-rw-rw-r--   1 motub somegroup    3904 nov  3  2004 depclean_data.txt
-rw-r--r--   1 motub somegroup     204 sep 27 17:40 general_cvs.txt
drwxrwxr-x   3 motub somegroup    1360 sep  6 23:23 hardware_man
drwxrwxr-x  10 motub somegroup     528 apr 26  2005 +hb_pers
drwxrwxr-x   6 motub somegroup    3448 apr 26  2005 infodocs
-rw-rw-r--   1 motub somegroup      56 nov  3  2004 install_notes.txt
-rw-r--r--   1 motub somegroup   99957 okt 18 20:17 Manual.pdf
drwxrwxr-x   2 motub somegroup     240 sep  4 17:45 misc
drwxrwxr-x   3 motub somegroup    1320 dec  9 21:46 miscpost
drwxrwxr-x   8 motub somegroup    5808 mei 29  2005 misctech
-rw-r--r--   1 motub somegroup    1661 jul 13 13:52 more_what works.txt
-rw-r--r--   1 motub somegroup    1410 jul  2  2005 more_what works.txt~
drwxrwxr-x   2 motub somegroup    3360 okt 19 01:38 my_scripts
-rw-r--r--   1 motub somegroup     262 okt  4 17:03
new_wine_install_notes.txt
drwxrwxr-x   2 motub somegroup    2312 dec 24 15:42 output
-rw-rw-r--   1 motub somegroup    5351 nov  6  2004 readme-queen.txt
-rw-rw-r--   1 motub somegroup   50744 nov  6  2004 README-scummvm.txt
drwxr-xr--   2 motub somegroup     120 okt 18 20:41 registry
drwx------   2 motub somegroup     112 jun 15  2005 .Trash-motub
-rw-r--r--   1 motub somegroup   75612 jun 16  2005 what_works.html

I see that many files that are more than a year old then are followed by
the year, but some are not, and some which are less than a year old are
followed by a year.

-rw-r--r--   1 motub somegroup    1661 jul 13 13:52 more_what works.txt
(this must have been created in 2005)

but this file is less than a year old and is still fully dated:

-rw-rw-r--   1 motub somegroup     581 jan 31  2005 computeruniverse_rma.txt

But even leaving aside the inconsistencies (only for the purposes of
this discussion), this is not the behaviour I expect or in fact desire.
I normally expect the year to be displayed whenever the current calendar
year is different from that associated with the file-- thus, if the file
was created in 2006, I would not expect the year to be shown, but if it
was created in 2005, I would expect the year to be shown, whether or not
the current date was one year or more from the month and day that the
file was created.

Rather than go off on a rant, I will ask mildly: is there any way to
change the default behaviour to more reflect my expected behaviour? Not
so much asking you to tell me how to do it as asking if those of you who
have already read man ls whether there is a solution to be found when I
have the time to read it myself.

Thanks,
Holly
-- 
gentoo-user@gentoo.org mailing list

Reply via email to