Package: dlocate
Version: 1.02
Followup-For: Bug #653279

On Tue, 27 Dec 2011 14:59:47 +0200 "era eriksson" <e...@iki.fi> wrote:
> As you can tell by the diagnostic output, you cannot use a regex anchor
> to signal beginning of file in this context.  Did you get the impression
> from the documentation that this [regexp '^'] ought to be possible? ...

    % dlocate | grep -A 1 Commands 
    Commands:
      DEFAULT/none PATTERN   list records that match either package or files 
names


    % man dlocate | grep -n -A 2 COMMANDS
    17:COMMANDS
    18-       (none) List  all records where either the package name or the 
filename matches
    19-              PATTERN.

A standard regexp '^' is a clear implication of the above.

Moreover, the docs neglect to describe how the regexp '^' wouldn't
work unless it's suffixed with 'dlocate' specific metadata. (s/^/^: /)

Either the '^' should be made to work in a standard way, or the docs
should describe how it deviates.

HTH...


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-3-686-pae (SMP w/2 CPU cores)
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 dlocate depends on:
ii  dctrl-tools [grep-dctrl]  2.22.2
ii  dpkg                      1.16.8
ii  perl                      5.14.2-12

dlocate recommends no packages.

dlocate suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to