[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-150-g91528b5
Ville Skyttä
ville.skytta at iki.fi
Sat Feb 18 08:15:11 UTC 2012
The following commit has been merged in the master branch:
commit e4fe946621d824fe04f5c8a8f4f774342b53df40
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Sat Feb 18 10:12:02 2012 +0200
su: Fix long option handling.
diff --git a/completions/su b/completions/su
index df91230..2c6254d 100644
--- a/completions/su
+++ b/completions/su
@@ -7,8 +7,8 @@ fi
_su() # linux-specific completion
{
- local cur prev words cword
- _init_completion || return
+ local cur prev words cword split
+ _init_completion -s || return
case "$prev" in
-s|--shell)
@@ -23,6 +23,8 @@ _su() # linux-specific completion
;;
esac
+ $split && return
+
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" --help )' -- "$cur" ) )
[[ $COMPREPLY == *= ]] && compopt -o nospace
--
bash-completion
More information about the Bash-completion-commits
mailing list