-----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-----

_______________________________________________
[email protected] mailing list
http://wmii.de/cgi-bin/mailman/listinfo/wmii

Reply via email to