Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 352021

Summary: `equery list */*` gives different results, depending on working dir
Product: Gentoo Linux Reporter: lxg <mail2lx>
Component: [OLD] UnspecifiedAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: bug
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description lxg 2011-01-18 13:26:32 UTC
When cd'ing into /var/db/pkg, the command `equery list */*`, which is used to get a list of all installed packages, gives a different result than if it's executed from a different directory.

Reproducible: Always

Steps to Reproduce:
# cd /var/db/pkg/ && equery list */*
 * Searching for espeak1.44.05 in app-accessibility ...
[IP-] [  ] app-accessibility/espeak-1.44.05:0

 * Searching for festival2.0.95_beta in app-accessibility ...
[IP-] [  ] app-accessibility/festival-2.0.95_beta:0

(… and so on)

# cd ~ && equery list */*
 * Searching for * in * ...
[IP-] [  ] app-accessibility/espeak-1.44.05:0
[IP-] [  ] app-accessibility/festival-2.0.95_beta:0
[IP-] [  ] app-accessibility/speech-tools-2.0.95_beta:0

(… and so on)



Expected Results:  
One would expect the above command to always give the same results, independent from the CWD.
Comment 1 Marcin Mirosław 2011-01-18 14:02:59 UTC
Try: equery list "*/*" . Char * is expanded by shell, imho this is problem in this case.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-01-18 20:16:00 UTC
So escape the globbing. :-\