diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/openSUSE/Command/_zypper | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 886fbfc53..85df29e6a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-03-16 Peter Stephenson <p.w.stephenson@ntlworld.com> + + * Mariusz Fik: 32847: Completion/openSUSE/Command/_zypper: new + options. + 2014-03-14 Peter Stephenson <p.w.stephenson@ntlworld.com> * unposted: Doc/Zsh/options.yo: document effect of 32479. diff --git a/Completion/openSUSE/Command/_zypper b/Completion/openSUSE/Command/_zypper index ef8ca203c..25a32c3f1 100644 --- a/Completion/openSUSE/Command/_zypper +++ b/Completion/openSUSE/Command/_zypper @@ -2,6 +2,7 @@ # # Copyright (C) 2009 Holger Macht <holger@homac.de> # Copyright (C) 2014 Thomas Mitterfellner <thomas.mitterfellner@gmail.com> +# Copyright (C) 2014 Mariusz Fik <fisiu@opensuse.org> # # This file is released under the GPLv2. # @@ -45,8 +46,10 @@ _zypper() { # start parsing with "Global Options:" [[ $hline =~ "^Global Options:" ]] && tag=1 [[ $tag = 0 ]] && continue + # skip empty lines + [[ $hline =~ ^\s*$ ]] && continue # all commands have to start with lower case letters - [[ $hline[1] =~ ^[A-Z] ]] && continue + [[ $hline == [[:upper:]]* ]] && continue (( ${#hline} < 2 )) && continue # cut comma at end of command |