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.
Try: equery list "*/*" . Char * is expanded by shell, imho this is problem in this case.
So escape the globbing. :-\