Package: dlocate
Version: 0.5-0.2
Severity: normal

For some reason my last post to:

    dlocate: duplicated -man entries
    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=152207

...hasn't gotten the bug reopened or fixed, and I can't
reopen it, so rather than let something useful sink into
e-oblivion, here's an abridged copy n' paste:

<copy begins>

...there seems to be an assumption that full pathnames are incompatible
with 'man'. That's not obvious though;  on my system this works:

    % man /usr/share/man/man1/bash.1.gz

...and even this works:

    % man `dlocate -L bash | grep ".*/man.*.gz" | sort`

...these aren't unique lines:

    % dlocate -man aptitude
    8 aptitude
    8 aptitude
    8 aptitude.fr
    8 aptitude
    8 aptitude.fi
    8 aptitude
    8 aptitude
    8 aptitude
    8 aptitude
    8 aptitude

    # how many dups was it?
    % dlocate -man aptitude | sort | uniq -cd
          8 8 aptitude  # 8 dups

Worse, if I try this:

    % man `dlocate -man aptitude`

...and keep hitting 'q' & <Enter>, the same man page shows up 8 times.

There are no repeats with this:

    % man `dlocate -L aptitude | grep ".*/man.*.gz" | sort`

So for that example at least, full pathnames are better.

NB: my one-liner's not perfect.  Packages with many symlinks to
man pages would cause repeats even with that code.  Maybe the worst
possible example:

    # how many symlinked man pages in 'manpages-dev'?
    % for f in `dlocate -L manpages-dev | grep ".*/man.*.gz"`; do file $f | 
grep symbolic ; done | wc -l
    881 # <<--  that many

I-yi-yi!  So the ideal would be a '-man' option that eliminated
symlinks, or could if desired.  Displaying only the local
language pages would be convenient too.

Hope this helps...

<copy ends>



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)

Versions of packages dlocate depends on:
ii  dpkg                          1.13.17    package maintenance system for Deb
ii  grep-dctrl                    2.9.0      Grep Debian package information - 
ii  perl                          5.8.8-4    Larry Wall's Practical Extraction 

dlocate recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to