tech-pkg archive

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

Re: pkg_info(1) and wildcards / by-file listenings



On Mon, 2 Mar 2009, Joerg Sonnenberger wrote:

On Sun, Mar 01, 2009 at 11:55:48PM +0000, David Brownlee wrote:
On Mon, 2 Mar 2009, Joerg Sonnenberger wrote:

Sorry, I was unclear. I want *shell* wildcards to fail, e.g.
        pkg_info -e lib*
as opposed to
        pkg_info -e lib\*

        OK, makes sense - though thats more an artifact of where the
        user is (/var/db/pkg would be a notable exception :)

        What did you think of allowing multiple arguments via
        'pkg_info -e xtrans xsnow'

You can't distinguish that from a shell having expanded a wildcard.
That's why I suggested to "fix" the option handling so that -e pattern
can be given more than once.

        I can understand that, though potentially that same issue
        applies to just straight pkg_info or pkg_delete, so POLS
        would probably suggest pkg_info -e just takes multiple
        arguments in a similar fashion.

        But if I'm not writing the code I'm not going to complain
        either way :)


--
                David/absolute       -- www.NetBSD.org: No hype required --


Home | Main Index | Thread Index | Old Index