aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Mike Kelly <pioto@pioto.org> 2007-03-05 09:13:41 +0000
committerAvatar Mike Kelly <pioto@pioto.org> 2007-03-05 09:13:41 +0000
commitcf7201af64ac4738d7b344fd4de2045396aaf6ce (patch)
tree69a6b6cf4c084f10aa349a404e21d422c05b6e36
parent510e8f53b27eccb0447cadeede401d350bd65bfc (diff)
downloadpaludis-cf7201af64ac4738d7b344fd4de2045396aaf6ce.tar.gz
paludis-cf7201af64ac4738d7b344fd4de2045396aaf6ce.tar.xz
Fix a little oops
-rw-r--r--bash-completion/paludis4
1 files changed, 3 insertions, 1 deletions
diff --git a/bash-completion/paludis b/bash-completion/paludis
index e35c127..d536bf9 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