[gentoo-user] Is this a bug in equery

2005-11-23 Thread Harry Putnam
I'm trying to learn equery since qpkg is being laid to rest.  However
I'm finding the hints that appear when you syntax is wrong very
confusing.

Her is an example:

  equery files --type vim

Gives  the expected results 

but if you add a version number things get very confusing


   equery files --type vim-6.3

 equery files --type vim-6.3
[ Searching for packages matching vim-6.3... ]
!!! Invalid syntax: missing operator
!!! If you want only specific versions please use one of
!!! the following operators as prefix for the package name:
!!!  =  =  =  
!!! Example to only match gcc versions greater or equal 3.2:
!!!=sys-devel/gcc-3.2


OK following the example give doesn't work:

  equery files --type =app-editors/vim-6.3
 -bash: =app-editors/vim-6.3: No such file or directory

OR

  equery files  =app-editors/vim-6.3
 -bash: =app-editors/vim-6.3: No such file or directory

That was following EXACTLY the given directions.

It appears one needs to quote that kind of query like:
  equery files  =app-editors/vim-6.3

So that is what the directions need to say.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Is this a bug in equery

2005-11-23 Thread Nick Rout
On Wed, 23 Nov 2005 22:11:27 -0300
Arturo 'Buanzo' Busleiman [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Harry Putnam wrote:
equery files --type =app-editors/vim-6.3
   -bash: =app-editors/vim-6.3: No such file or directory
 
 add single quotes, so the  metacharacter is not parsed by bash, like this:
 
 equery files --type '=app-editors/vim-6.3'

yes its not a biug as such, but a result of the shell you are using,
which interprets  as a redirection tool. Perhaps the equery docos
should/examples should say so. If you want it fixed, files bug,
mentioning it here will NOT get it fixed.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Is this a bug in equery

2005-11-23 Thread Paul Varner
On Wed, 2005-11-23 at 20:02 -0600, Harry Putnam wrote:
 I'm trying to learn equery since qpkg is being laid to rest.  However
 I'm finding the hints that appear when you syntax is wrong very
 confusing.

I have opened bug #113423

Does the following make more sense to you:

$ ./equery files --type vim-6.4
[ Searching for packages matching vim-6.4... ]
!!! Invalid syntax: missing operator
!!! If you want only specific versions please use one of
!!! the following operators as prefix for the package name:
!!!  =  =  =  
!!! Example to only match gcc versions greater or equal 3.2:
!!!=sys-devel/gcc-3.2
!!!
!!! Note: The symbols  and  are used for redirection in the shell
!!! You must enclose the package name in quotation marks, if either
!!! of these characters are used

Regards,
Paul
-- 
gentoo-user@gentoo.org mailing list