Re: [wmii] snap: 20060313, proglist() spike

From: Suraj N. Kurapati <skurapat_AT_ucsc.edu>
Date: Tue, 14 Mar 2006 10:25:03 -0800

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul TBBle Hampson wrote:
> '-type f' will miss things symlinked into the directory. This is
> particularly bad on Debian, which uses symlinks to drive the
> alternatives system, meaning that more binaries than you might expect
> would suddenly not show up.

Precisely. The '\! -type d' was added because the find-pipeline
skipped quite a number of binaries which the proglist() function was
reporting.

> find -L `echo "$PATH" | tr ':' ' ' ` -perm -u+x -type f -print | sed 's,^.*/,,' | sort -u
>
> Only one find run, against all the paths at once... find is specified to

Cool! I hadn't known find could be given multiple paths. Thanks for
the tip (it's been too long since I've RTFM). :-)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)

iD8DBQFEFwp/mV9O7RYnKMcRAs5rAJ9fPyXvOZ5ASv4WUwPFu0/xLtHUbQCfdNWW
+c+AIX/CluICdz6/QBuksSI=
=Jegx
-----END PGP SIGNATURE-----
Received on Tue Mar 14 2006 - 19:46:24 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:01:10 UTC