bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

find 4.2.20 "-name" option


From: Darrell Tangman
Subject: find 4.2.20 "-name" option
Date: Mon, 2 May 2005 07:55:50 -0400 (EDT)

I just installed findutils 4.2.20 and am finding that existing scripts need tweaking. The latest problem (and the only thing that appears to be an actual bug, and not just an incompatibility) is that the command

   find . -name '*' -print

begins its output with ".", followed by "./somename", where "somename" is the first name found in the current directory. According to the documentation, "*" does not match "." at the beginning of the basename; it appears that find is now treating the basename of "." as an empty string, which is a very curious behavior. The expected behavior can be achieved with

   find . -name '*' -not -name . -print

--
Darrell Tangman -- address@hidden -- Augusta, Georgia, USA, Earth




reply via email to

[Prev in Thread] Current Thread [Next in Thread]