Welcome to CRUX bug tracking.
FS#106 - patternmatching for pkginfo -o is inconsistant
Attached to Project:
CRUX
Opened by Han (han) - Thursday, 31 August 2006, 14:07 GMT+2
Last edited by Anonymous Submitter - Wednesday, 21 February 2007, 15:41 GMT+2
Opened by Han (han) - Thursday, 31 August 2006, 14:07 GMT+2
Last edited by Anonymous Submitter - Wednesday, 21 February 2007, 15:41 GMT+2
|
Detailspkginfo -o \'/usr/lib/libstdc\\+\\+.so.6\' works ok
pkginfo -o /usr/lib/libstdc++.so.6 does not work at all pkginfo -o /usr/lib/libstdc++. does work I think it would be better if pkginfo did not try to match regular expressions. |
This task depends upon
pkginfo could be dumbed down in other areas too, e.g. \"pkginfo -i\" would only list the names of the installed ports (no versions, like prt-get listinst) and then some other switch could be used to get the version of a package. Also the \"Package File\" header is slightly annoying if you want to use \"pkginfo -o\" in scripts, and I\'m sure few people are wondering whether \"python\" or \"usr/lib/python2.4/__phello__.foo.py\" is the package name.
Alternately the current \"-o\" behaviour could be kept in an -s switch since it is occassionally useful to use a regex, but I think an option to _just_ get the owner of a file (if any) would be very nice to have, e.g.:
$ pkginfo -o /bin/bash
bash
$