Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg info -E is ignored in combination with -O #2194

Open
lonkamikaze opened this issue Oct 27, 2023 · 4 comments
Open

pkg info -E is ignored in combination with -O #2194

lonkamikaze opened this issue Oct 27, 2023 · 4 comments

Comments

@lonkamikaze
Copy link

E.g.:

# pkg info -EO math/\*                                                                                                                                                                                               AprilRyan.norad:~/ 0 
Imath-3.1.9                    C++/Python lib of 2D/3D vector, matrix, math ops for computer graphics
MathJax3-3.2.2                 Cross-browser JavaScript display engine for mathematics
fast_float-5.2.0               Fast and exact C++ number parsing library
fftw3-3.3.10_4                 Fast C routines to compute the Discrete Fourier Transform
fftw3-float-3.3.10_4           Fast Discrete Fourier Transform (Single Precision C Routines)
glpk-5.0                       GNU Linear Programming Kit
gmp-6.3.0                      Free library for arbitrary precision arithmetic
gsl-2.7.1                      The GNU Scientific Library - mathematical libs
lp_solve-5.5.2.5               Linear Programming Solver
mpc-1.3.1_1                    Library of complex numbers with arbitrarily high precision
mpdecimal-2.5.1                C/C++ arbitrary precision decimal floating point libraries
mpfr-4.2.1,1                   Library for multiple-precision floating-point computations
qhull-8.0.2_2,1                Qhull computes convex hulls, Delaunay triangulations, and halfspaces
sc-7.16_3                      Curses-based spreadsheet program

Expected:

# pkg info -EO math/\*                                                                                                                                                                                               Imath-3.1.9
MathJax3-3.2.2
fast_float-5.2.0
fftw3-3.3.10_4
fftw3-float-3.3.10_4
glpk-5.0
gmp-6.3.0
gsl-2.7.1
lp_solve-5.5.2.5
mpc-1.3.1_1
mpdecimal-2.5.1
mpfr-4.2.1,1
qhull-8.0.2_2,1
sc-7.16_3
@lonkamikaze
Copy link
Author

The same is true for -aE. I get the expected output with -aq and -Oq. The man page is extremely vague about -q and it doesn't seem to do what I want for all cases.

@bapt
Copy link
Member

bapt commented Oct 27, 2023

-E has been added for a compatibility with pkg_* so has not been wide spreaded and consistently implemented, if you want a full control on the output of pkg, I will strongly recommend that you use pkg query:

pkg query -g "%n-%v" "math/*"

@lonkamikaze
Copy link
Author

AFAIK pkg query does not support -O.

@bapt
Copy link
Member

bapt commented Oct 28, 2023

It does not need, if you are looking that origins, the above example works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants