[yast-commit] r55163 - in /trunk/yast2: package/yast2.changes scripts/yast2-completion.sh
Author: jsrain Date: Fri Jan 30 11:39:10 2009 New Revision: 55163 URL: http://svn.opensuse.org/viewcvs/yast?rev=55163&view=rev Log: fixed bash completion (bnc #470544) Modified: trunk/yast2/package/yast2.changes trunk/yast2/scripts/yast2-completion.sh Modified: trunk/yast2/package/yast2.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/package/yast2.changes?rev=55163&r1=55162&r2=55163&view=diff ============================================================================== --- trunk/yast2/package/yast2.changes (original) +++ trunk/yast2/package/yast2.changes Fri Jan 30 11:39:10 2009 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Fri Jan 30 11:14:42 CET 2009 - jsrain@suse.cz + +- fixed bash completion (bnc #470544) + +------------------------------------------------------------------- Wed Jan 28 11:55:29 CET 2009 - lslezak@suse.cz - PackagesUI - removed textdomain switches Modified: trunk/yast2/scripts/yast2-completion.sh URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/scripts/yast2-completion.sh?rev=55163&r1=55162&r2=55163&view=diff ============================================================================== --- trunk/yast2/scripts/yast2-completion.sh (original) +++ trunk/yast2/scripts/yast2-completion.sh Fri Jan 30 11:39:10 2009 @@ -18,7 +18,7 @@ fi cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} - if [[ ${#COMP_WORDS[@]} -ge 3 ]]; then + if [[ ${#COMP_WORDS[@]} -ge 3 && $COMP_CWORD -ge 2 ]]; then prevprev=${COMP_WORDS[COMP_CWORD-2]} fi if [[ $cur == '-' ]]; then -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
jsrain@svn.opensuse.org