On Monday 18 January 2010 17:12:41 Grant wrote: > > # qlist -o $(qlist -ICv) | scanelf -Bs__guard -qf - -F%F#s | xargs qfile > > Usage: qfile <opts> <filename> : list all pkgs owning files > > > > Options: -[ef:m:oRx:vqChV] > > -e, --exact * Exact match > > -f, --from <arg> * Read arguments from file <arg> ("-" for stdin) > > -m, --max-args <arg> * Treat from file arguments by groups of <arg> > > (defaults to 5000) > > -o, --orphans * List orphan files > > -R, --root-prefix * Assume arguments are already prefixed by $ROOT > > -x, --exclude <arg> * Don't look in package <arg> > > -v, --verbose * Make a lot of noise > > -q, --quiet * Tighter output; suppress warnings > > -C, --nocolor * Don't output color > > -h, --help * Print this help and exit > > -V, --version * Print version and exit > > > > Does anyone know what might be wrong? > > > > - Grant > > I think the problem above is that -I isn't a current option of qfile, > but removing it produces the error I originally posted about: > > qlist: invalid option -- '[' > > - Grant It does look like your qlist is out of date and giving you a --help summary which the outer qlist tries to interpret, and fails.
If you can't update the package qlist comes from, you might get by with replacing the inner qlist with equery. It gives output like this: $ equery --quiet list '*' app-admin/apache-tools-2.2.14 app-admin/apg-2.3.0b-r4 app-admin/empower-9999 which looks the same as the output from qlist -ICv: $ qlist -ICv | head -n3 app-admin/apache-tools-2.2.14 app-admin/apg-2.3.0b-r4 app-admin/empower-9999 This requires gentoolkit-0.3* which is ~ -- alan dot mckinnon at gmail dot com