Bug 200509

Summary: pkg info is inconsistent with multiple arguments
Product: Ports & Packages Reporter: philk
Component: Individual Port(s)Assignee: freebsd-pkg (Nobody) <pkg>
Status: Open ---    
Severity: Affects Many People CC: bapt, w.schwarzenfeld
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

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".