[Bash-completion-commits] [SCM] bash-completion branch, master, updated. bb8ba402357cb029235c12a5253b7d33e5872001
Ville Skyttä
ville.skytta at iki.fi
Sun Jul 11 09:17:16 UTC 2010
The following commit has been merged in the master branch:
commit 78107506c61d6224f4b4f1a27f078b5d1ade22a8
Author: Anton Khirnov <wyskas at gmail.com>
Date: Wed Jul 7 18:44:34 2010 +0200
mplayer: fix profile names completion.
unlike other '-foo help' style options for which the first line is
mplayer copyright info followed by ^Available line, -profile help
outputs first the list of profile names and copyirght info is actually
the last line.
diff --git a/contrib/mplayer b/contrib/mplayer
index 1f8a4ac..e74db5e 100644
--- a/contrib/mplayer
+++ b/contrib/mplayer
@@ -5,7 +5,7 @@ _mplayer_options_list()
{
cur=${cur%\\}
COMPREPLY=( $( compgen -W "$( $1 -nomsgcolor -nomsgmodule $2 help 2>/dev/null | \
- sed -e '1,/^Available/d' | awk '{print $1}' | \
+ sed -e '/^Available/,/^$/!d' -e '/^Available/d' | awk '{print $1}' | \
sed -e 's/:$//' -e 's/^'${2#-}'$//' -e 's/<.*//' )" -- "$cur" ) )
}
--
bash-completion
More information about the Bash-completion-commits
mailing list