[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: David Holland <dholland-bugs%netbsd.org@localhost>
Subject: Re: bin/51269: pkg_info enhancements
Date: Sun, 31 Jul 2016 23:53:34 +0000
On Sun, Jul 31, 2016 at 08:40:01PM +0000, Joerg Sonnenberger wrote:
>>>>>> 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
> It doesn't even work if there is no input, as that doesn't trigger any
> option at all.
That's not the common case either. It could also print a blank line
when there's no value.
> > 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.
Oops, my bad. n/m
David A. Holland
Main Index |
Thread Index |