[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /usr/bin/[ what is it?



Jörg-Volker Peetz wrote:
> dpkg -S /usr/bin/\\[ (two backslashes) will do it.

Jon Dowland writes:
> Urgh nasty... I wonder if there's a bug to be filed there.

Roger Leigh writes:
> I think so.  It doesn't look like sane behaviour, even if you quote
> it:

> $ dpkg -S '/usr/bin/['
> dpkg: /usr/bin/[ not found.
> $ dpkg -S '/usr/bin/\['
> coreutils: /usr/bin/[

It's perfectly sane behavior, though not properly documented.  'dpkg -S'
accepts regular expressions.  Try 

        dpkg -S '/bin/[a-z]s'
-- 
John Hasler



Reply to: