Hi!

On Wed, 2015-01-14 at 22:54:13 +0100, Axel Beckert wrote:
> Package: dpkg
> Version: 1.17.23
> Severity: minor

> from the dpkg-query(1) man page:
> 
>        -S, --search filename-search-pattern...
>               Search for packages that own files corresponding to the
>               given pattern.  Standard shell wildchars can be used in
>               the pattern.  This command will not list extra files
>               created by maintainer scripts, nor will it list
>               alternatives.
> 
> This doesn't explain the following difference:

> IMHO the man page should explicitly mention that if the parameter to -S
> starts with a slash, the parameter is taken as complete file name while
> it is taken as substring match on path and file name otherwise.

Indeed, this is not clear at all. I'll document it for 1.18.x. The
actual behavior is:

  If the first character is any of "*[?/" then it will be considered a
  pattern, and it will be surrounded by *, as in "*string*".

  If the string contains any of "*[?\\", then it's considered a
  glob pattern. Otherwise a literal path lookup is performed.

Thanks,
Guillem


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

Reply via email to