Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Feb 2008 16:50:05 -0600
From:      Joshua Isom <jrisom@gmail.com>
To:        hackers@freebsd.org
Subject:   Re: find -lname and -ilname implemented
Message-ID:  <86c537e091aaaebaf6ba00e5259c5eb1@gmail.com>
In-Reply-To: <20080224.124339.-1302545914.imp@bsdimp.com>
References:  <20080222.225937.-146245356.imp@bsdimp.com> <20080223.000308.686168314.imp@bsdimp.com> <20080224171155.GD51827@dracon.ht-systems.ru> <20080224.124339.-1302545914.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Instead of all the debate about GNU compatibility and the fact that the 
patch adds a feature not readily available, why not improve FreeBSD's 
find without caring about GNU's find?  I have not seen a way to capture 
output from a command and compare it to another command.  Imagine 
something conceptually like `find . -type l -execout readlink '{}' \; 
-eq "foobar.txt" -print`?  Then it's possible to achieve the same 
possibility as -lname, and far far more.  You could search for all 
files with "foobar" in the last ten lines of the file even.  The 
closest "viable" option to this that I know of is find2perl, and then 
custom editing.

Not to mention, I imagine you'd soon see GNU find struggling for 
FreeBSD find compatibility.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86c537e091aaaebaf6ba00e5259c5eb1>