NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/51269: pkg_info enhancements
The following reply was made to PR bin/51269; it has been noted by GNATS.
From: Joerg Sonnenberger <joerg%bec.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost, paul%whooppee.com@localhost
Subject: Re: bin/51269: pkg_info enhancements
Date: Sun, 31 Jul 2016 22:36:05 +0200
On Sun, Jul 31, 2016 at 06:40:01PM +0000, David Holland wrote:
> The following reply was made to PR bin/51269; it has been noted by GNATS.
>
> From: David Holland <dholland-bugs%netbsd.org@localhost>
> To: gnats-bugs%NetBSD.org@localhost
> Cc:
> Subject: Re: bin/51269: pkg_info enhancements
> Date: Sun, 31 Jul 2016 18:39:14 +0000
>
> On Sun, Jun 26, 2016 at 06:25:00PM +0000, Joerg Sonnenberger wrote:
> >>>> * Allow for querying of more than one variable at a time, by specifying
> >>>> multiple -Q options
> >>>>
> >>>> pkg_info -Q PKGPATH -Q PKGNAME
> >>>
> >>> So, how would I know where one variable ends and the next one starts?
> >>
> >> Uh, with getopt?
> >
> > In the output, not on the command line.
>
> One per line, same as in +BUILD_INFO? That won't work if there are
> multiple values for one of the variables, but that's not the common
> case.
It doesn't even work if there is no input, as that doesn't trigger any
option at all.
> Also, right now if you run the above example with two -Q options
> pkg_info silently prints nothing, which does not seem like it's better
> behavior.
It uses the common behavior of last argument in a group wins. PKGNAME
has no defined value, so no output is given.
Joerg
Home |
Main Index |
Thread Index |
Old Index