Fix modules completion for "(default)" entries.

This commit is contained in:
Ted Stern 2009-12-08 19:43:00 +02:00 committed by Ville Skyttä
parent 098dc9c1b8
commit af26cfb285
2 changed files with 4 additions and 1 deletions

View File

@ -48,6 +48,9 @@ bash-completion (2.x)
[ Freddy Vulto ] [ Freddy Vulto ]
* Added _get_pword() helper function, thanks to Sung Pae (Alioth: #312030) * Added _get_pword() helper function, thanks to Sung Pae (Alioth: #312030)
[ Ted Stern ]
* Fix modules completion for "(default)" entries.
-- David Paleino <d.paleino@gmail.com> Sun, 11 Oct 2009 11:11:57 +0200 -- David Paleino <d.paleino@gmail.com> Sun, 11 Oct 2009 11:11:57 +0200
bash-completion (1.1) bash-completion (1.1)

View File

@ -35,7 +35,7 @@ _module_avail ()
local modules="$( \ local modules="$( \
module avail 2>&1 | \ module avail 2>&1 | \
egrep -v '^(-|$)' | \ egrep -v '^(-|$)' | \
xargs printf '%s\n' | sort )" xargs printf '%s\n' | sed -e 's/(default)//g' | sort )"
compgen -W "$modules" -- $1 compgen -W "$modules" -- $1
} }