aboutsummaryrefslogtreecommitdiff
path: root/bash-completion
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion')
-rw-r--r--bash-completion/paludis4
1 files changed, 3 insertions, 1 deletions
diff --git a/bash-completion/paludis b/bash-completion/paludis
index e35c127ee..d536bf9ac 100644
--- a/bash-completion/paludis
+++ b/bash-completion/paludis
@@ -12,7 +12,9 @@ _paludis_packagenames() {
for d in * ; do
[[ -d "${d}" ]] || continue
pushd "${d}" 1>/dev/null
- echo "${1}"*
+ for x in "${1}"* ; do
+ [[ -f "${x}" ]] && echo $x
+ done
popd 1>/dev/null
done
popd 1>/dev/null