summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-kernel/genkernel/files/genkernel.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-kernel/genkernel/files/genkernel.bash b/sys-kernel/genkernel/files/genkernel.bash
index bb326c87d3a9..ed6b1c16604e 100644
--- a/sys-kernel/genkernel/files/genkernel.bash
+++ b/sys-kernel/genkernel/files/genkernel.bash
@@ -65,7 +65,7 @@ _genkernel()
# recreate COMPREPLY
if [[ $cur == "$lhs"* ]]; then
COMPREPLY=( "${args[@]}" )
- else
+ elif [[ ${#args[@]} -gt 0 ]]; then
COMPREPLY=( "${args[@]/#/$lhs}" )
fi
}