Package: whichman Version: 2.4-3 Severity: wishlist
Some program names aren't unique: # show duplicated two letter names, no path % ftwhich -0 ?? | sed 's#.*/##' | sort -u | tr '\n' ' ' ; echo ar as at bc cc ci co cp dc dd df di du ed ee es ex fr gc gs gv hd id ip kj ld le li ln lp ls lz m4 mc mf mt mv mx nl nm ns od pg pr ps pv pw rb rl rm rx rz sb sf sg sh si sq sr su sx sz td tr ts ui ul uz vi wc we Are the contents unique? One can't tell from the pathname: # show 10 lines of duplicated two letter programs names in path % ftwhich -0 ?? | sed 's#.*/##' | sort | uniq -d | while read x ; do ftwhich -0 $x ; done | head /usr/bin/ar /usr/bin/X11/ar /usr/bin/as /usr/bin/X11/as /usr/bin/at /usr/bin/X11/at /usr/bin/bc /usr/bin/X11/bc /usr/bin/cc /usr/bin/X11/cc It might be useful to have an 'ftwhich' option to only print names that aren't links, or in the case of hard links, whichever pathname that's first to execute. The result would look something like: # show 10 lines of duplicated two letter program names, but not their links % ftwhich -0 ?? | sed 's#.*/##' | sort | uniq -d | while read x ; do ftwhich -0 $x ; done | while read x ; do realpath $x ; done | sort | uniq | head /usr/bin/ar /usr/bin/as /usr/bin/at /usr/bin/bc /usr/bin/ci /usr/bin/co /usr/bin/dc /usr/bin/di /usr/bin/du /usr/bin/ee Hope this helps... -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.22-3-k7 (SMP w/1 CPU core) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Shell: /bin/sh linked to /bin/dash Versions of packages whichman depends on: ii libc6 2.6.1-6 GNU C Library: Shared libraries whichman recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]