Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352021 - `equery list */*` gives different results, depending on working dir
Summary: `equery list */*` gives different results, depending on working dir
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-18 13:26 UTC by lxg
Modified: 2011-01-18 20:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. :-\