1 |
Willie Wong schreef: |
2 |
> On Sat, Jan 07, 2006 at 04:17:11PM +0100, Penguin Lover Holly Bostick |
3 |
> squawked: |
4 |
> |
5 |
>> (how do you get ls to also include the @#$%#$ *year*??) |
6 |
> |
7 |
> |
8 |
> Sorry, couldn't help with the rest of your problem, but I think it is |
9 |
> assumed that ls will display the year only for files older than a |
10 |
> year old. Quite clever, in my opinion. |
11 |
|
12 |
OK, I see what you mean-- or maybe I don't: |
13 |
|
14 |
la ~/docs/ |
15 |
totaal 3714 |
16 |
drwxrwxr-x 15 motub somegroup 1136 okt 28 00:56 . |
17 |
drwxrwxr-x 16 motub somegroup 1720 nov 21 02:46 .. |
18 |
-rw-r--r-- 1 motub somegroup 1292758 okt 18 20:17 autosc102.exe |
19 |
drwxr-xr-x 6 motub somegroup 192 okt 30 15:25 books |
20 |
-r-xr-xr-x 1 motub somegroup 2778 jan 27 2003 Buddies.xml |
21 |
drwxrwxr-x 2 motub somegroup 1216 jan 6 22:42 cmds |
22 |
-rw-rw-r-- 1 motub somegroup 581 jan 31 2005 computeruniverse_rma.txt |
23 |
drwxrwxr-x 5 motub somegroup 3192 nov 21 16:55 config |
24 |
-rw-rw-r-- 1 motub somegroup 3904 nov 3 2004 depclean_data.txt |
25 |
-rw-r--r-- 1 motub somegroup 204 sep 27 17:40 general_cvs.txt |
26 |
drwxrwxr-x 3 motub somegroup 1360 sep 6 23:23 hardware_man |
27 |
drwxrwxr-x 10 motub somegroup 528 apr 26 2005 +hb_pers |
28 |
drwxrwxr-x 6 motub somegroup 3448 apr 26 2005 infodocs |
29 |
-rw-rw-r-- 1 motub somegroup 56 nov 3 2004 install_notes.txt |
30 |
-rw-r--r-- 1 motub somegroup 99957 okt 18 20:17 Manual.pdf |
31 |
drwxrwxr-x 2 motub somegroup 240 sep 4 17:45 misc |
32 |
drwxrwxr-x 3 motub somegroup 1320 dec 9 21:46 miscpost |
33 |
drwxrwxr-x 8 motub somegroup 5808 mei 29 2005 misctech |
34 |
-rw-r--r-- 1 motub somegroup 1661 jul 13 13:52 more_what works.txt |
35 |
-rw-r--r-- 1 motub somegroup 1410 jul 2 2005 more_what works.txt~ |
36 |
drwxrwxr-x 2 motub somegroup 3360 okt 19 01:38 my_scripts |
37 |
-rw-r--r-- 1 motub somegroup 262 okt 4 17:03 |
38 |
new_wine_install_notes.txt |
39 |
drwxrwxr-x 2 motub somegroup 2312 dec 24 15:42 output |
40 |
-rw-rw-r-- 1 motub somegroup 5351 nov 6 2004 readme-queen.txt |
41 |
-rw-rw-r-- 1 motub somegroup 50744 nov 6 2004 README-scummvm.txt |
42 |
drwxr-xr-- 2 motub somegroup 120 okt 18 20:41 registry |
43 |
drwx------ 2 motub somegroup 112 jun 15 2005 .Trash-motub |
44 |
-rw-r--r-- 1 motub somegroup 75612 jun 16 2005 what_works.html |
45 |
|
46 |
I see that many files that are more than a year old then are followed by |
47 |
the year, but some are not, and some which are less than a year old are |
48 |
followed by a year. |
49 |
|
50 |
-rw-r--r-- 1 motub somegroup 1661 jul 13 13:52 more_what works.txt |
51 |
(this must have been created in 2005) |
52 |
|
53 |
but this file is less than a year old and is still fully dated: |
54 |
|
55 |
-rw-rw-r-- 1 motub somegroup 581 jan 31 2005 computeruniverse_rma.txt |
56 |
|
57 |
But even leaving aside the inconsistencies (only for the purposes of |
58 |
this discussion), this is not the behaviour I expect or in fact desire. |
59 |
I normally expect the year to be displayed whenever the current calendar |
60 |
year is different from that associated with the file-- thus, if the file |
61 |
was created in 2006, I would not expect the year to be shown, but if it |
62 |
was created in 2005, I would expect the year to be shown, whether or not |
63 |
the current date was one year or more from the month and day that the |
64 |
file was created. |
65 |
|
66 |
Rather than go off on a rant, I will ask mildly: is there any way to |
67 |
change the default behaviour to more reflect my expected behaviour? Not |
68 |
so much asking you to tell me how to do it as asking if those of you who |
69 |
have already read man ls whether there is a solution to be found when I |
70 |
have the time to read it myself. |
71 |
|
72 |
Thanks, |
73 |
Holly |
74 |
-- |
75 |
gentoo-user@g.o mailing list |