On Thu, Mar 15, 2007 at 12:17:03AM +0000, Adam D. Barratt wrote: > > The special-casing of /usr/bin/X11 is better than find, since we want > > also to catch missing manpages for symlinks, eg debc is a symlink to > > debi, but both require manpages. > > That was the intention of using -xtype in the find invocation; > unfortunately it also matched symlinks that didn't point to an > executable file. It should have been: > > for F in $(find "$@" -follow -type f -perm /0111 -printf '%f ' \ > 2>/dev/null); do > > (i.e. files that are executable or symlinks whose targets are files that > are executable). > [...] > > Personally I still prefer the find solution, but it really depends how > we want to handle non-executable files located in the folders being > traversed.
There shouldn't be any non-executable files in those folders except for symlinks. Why make life hard when we can make it easy? Julian -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]