[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #13212] -newer only examines it's target once at the start
From: |
James Youngman |
Subject: |
[bug #13212] -newer only examines it's target once at the start |
Date: |
Sat, 28 May 2005 00:56:41 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Firefox/1.0.4 (Debian package 1.0.4-1) |
Update of bug #13212 (project findutils):
Status: None => Invalid
Assigned to: None => jay
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
I'm not sure you really are using GNU find. GNU find doesn't have an "-f"
option.
Anyway, I'm not going to make the change you suggest, for several reasons:
1. It's not unlikely that there are also scripts which assume the reverse
behaviour, because for example they are trying to generate some kind of
incremental backup and need the timestamp to be unchanged. This applies
especially to -anewer.
2. There are lots of other ways to achieve the sort of thing you have in
mind. Here are two (untested) examples:
# an obvious way
find "$START" -newer "$TARGET" -exec test {} -nt "$TARGET" ";" -exec touch -r
"{}" "$TARGET" ";"
# an efficient way (for larger directory trees)
touch -r "$(find $START -printf "%T@:%p\n" | (unset LANG LC_COLLATE; sort -n
) | sed -ne '$ p' | cut -d: -f2-)" "$TARGET"
Lastly, findutils 4.1.7 is quite old now. If you are planning to report bugs
in findutils, please check that current versions are not affected (in this
case findutils version 4.2.20).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13212>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/