Bug 200509 - pkg info is inconsistent with multiple arguments
Summary: pkg info is inconsistent with multiple arguments
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-pkg (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-29 00:26 UTC by philk
Modified: 2020-07-25 23:36 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description philk 2015-05-29 00:26:42 UTC
The pkg-info man page suggest that the only option is a single pkg-name:

SYNOPSIS
    pkg info pkg-name

However pkg info actually can take multiple pages, but the behaviours is inconsistent.

If specified with exactly one pkg, it does the equivalent of pkg info -f

# pkg info curl
curl-7.42.0
Name           : curl
Version        : 7.42.0
...

If specified with more than one pkg, it does the equivalent of pkg info -E (which is marked as depreciated in the man page).

# pkg info curl pcre
curl-7.42.0
pcre-8.35_2

The behaviour should not be dependent on the number of arguments as it makes it difficult to use in scripts.
Comment 1 Walter Schwarzenfeld freebsd_triage 2018-01-12 07:33:46 UTC
Maintainer feedback, please!
Comment 2 Baptiste Daroussin freebsd_committer freebsd_triage 2018-01-12 14:13:21 UTC
This is something that needs to be improved
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2020-07-25 23:36:35 UTC
^Triage: this does not currently appear to be "in progress".