1 |
On Saturday 20 November 2010 05:31:15 Grant Edwards wrote: |
2 |
> On 2010-11-20, Peter Humphrey <peter@××××××××××××××.org> wrote: |
3 |
> > On Friday 19 November 2010 17:53:31 Grant Edwards wrote: |
4 |
> >> |
5 |
> >> What different behavior? |
6 |
> > |
7 |
> > As I said, from the command line ls shows the year for any file |
8 |
> > more than 12 months old, in place of the time. When executed from |
9 |
> > find it doesn't. |
10 |
> |
11 |
> I don't see any difference when I do it. |
12 |
|
13 |
It turns out that the difference is in the 'c' switch to ls. With the |
14 |
switch I get this (grepping for a single file of the many): |
15 |
|
16 |
$ find . -iname \*.jpg -exec ls '-cdhl' {} \; | grep DSC_1810.JPG |
17 |
-r-xr-xr-x 1 prh prh 3.7M Aug 11 17:32 ./images/BOH-2009/DSC_1810.JPG |
18 |
|
19 |
and without it I get this: |
20 |
|
21 |
$ find . -iname \*.jpg -exec ls '-dhl' {} \; | grep DSC_1810.JPG |
22 |
-r-xr-xr-x 1 prh prh 3.7M Oct 28 2009 ./images/BOH-2009/DSC_1810.JPG |
23 |
|
24 |
Perhaps some process I ran on 11 August this year touched the file |
25 |
without modifying it. Anyway, it seems there isn't a problem (except in |
26 |
my website[1] management techniques, perhaps). Thanks anyway. |
27 |
|
28 |
$ equery l coreutils |
29 |
* Searching for coreutils ... |
30 |
[IP-] [ ] sys-apps/coreutils-8.7:0 |
31 |
|
32 |
[1] I don't suppose anyone's interested, but just in case, the site is |
33 |
at <http://tideswellmvc.co.uk/>; It's been my baby for about 18 months. |
34 |
|
35 |
-- |
36 |
Rgds |
37 |
Peter. Linux Counter 5290, 1994-04-23. |