ref: refs/heads/master
commit 50fc27309a736f9c4313a7de8e2cdf46ab9e6e25
Author: Josef Reidinger
Date: Thu Feb 12 09:43:15 2009 +0100
Bash completion: fixed invalid hints from multiline help.
---
src/bash-completion.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/bash-completion.sh b/src/bash-completion.sh
index 2b95470..b7259f9 100644
--- a/src/bash-completion.sh
+++ b/src/bash-completion.sh
@@ -10,7 +10,7 @@ _zypper() {
local magic_string="Command options:"
local opts opts2 cur prev command ITER
if test ${#ZYPPER_CMDLIST[*]} = 0; then
- for foo in $(LC_ALL=C $ZYPPER -h | sed -e "1,/Commands:/d" | awk -F ' ' '{print $1} {print $2}' | sed -e 's/,//' -e 's/[[:upper:]].*//'); do
+ for foo in $(LC_ALL=C $ZYPPER -h | sed -e "1,/Commands:/d" -e "/\t\t\t\t/d" | awk -F ' ' '{print $1} {print $2}' | sed -e 's/,//' -e 's/[[:upper:]].*//'); do
ZYPPER_CMDLIST="${ZYPPER_CMDLIST} $foo"
done
ZYPPER_CMDLIST="${ZYPPER_CMDLIST} "
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org