From ae03df4bc4c674a237c20e0d084235cea087098d Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Sat, 15 Apr 2017 21:22:09 -0700 Subject: [PATCH] a step to remove __fish_sgrep per issue #2450 --- share/completions/mplayer.fish | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/share/completions/mplayer.fish b/share/completions/mplayer.fish index b3a48635ac49..3ab8bea2bf6b 100644 --- a/share/completions/mplayer.fish +++ b/share/completions/mplayer.fish @@ -57,25 +57,25 @@ complete -c mplayer -o utf8 --description "Handle subtitlefile as utf8" complete -c mplayer -o vo -x --description "Video output" -a " ( - mplayer -vo help| __fish_sgrep \t.\*\t'\|^ *[a-zA-Z0-9][a-zA-Z0-9]* '|sed -e 's/[\t ]*\([a-zA-Z0-9]*\)[\t ]*\(.*\)/\1'\t'\2/' + mplayer -vo help | string match -ar '\t.*\t.*|^ *[a-zA-Z0-9]+ ' | sed -e 's/[\t ]*\([a-zA-Z0-9]*\)[\t ]*\(.*\)/\1'\t'\2/' ) " complete -c mplayer -o ao -x --description "Audio output" -a " ( - mplayer -ao help| __fish_sgrep \t.\*\t'\|^ *[a-zA-Z0-9][a-zA-Z0-9]* '|sed -e 's/[\t ]*\([a-zA-Z0-9]*\)[\t ]*\(.*\)/\1'\t'\2/' + mplayer -ao help | string match -ar '\t.*\t|^ *[a-zA-Z0-9]+ ' | sed -e 's/[\t ]*\([a-zA-Z0-9]*\)[\t ]*\(.*\)/\1'\t'\2/' ) " complete -c mplayer -o afm -x --description "Audio output" -a " ( - __fish_append ',' (mplayer -afm help| __fish_sgrep \t.\*\t'\|^ *[a-zA-Z0-9][a-zA-Z0-9]* '|sed -e 's/[\t ]*\([a-zA-Z0-9]*\)[\t ]*\(.*\)/\1'\t'\2/') + __fish_append ',' (mplayer -afm help | string match -ar '\t.*\t|^ *[a-zA-Z0-9]+ ' | sed -e 's/[\t ]*\([a-zA-Z0-9]*\)[\t ]*\(.*\)/\1'\t'\2/') ) " complete -c mplayer -o vfm -x --description "Video output" -a " ( - __fish_append ',' (mplayer -vfm help| __fish_sgrep \t.\*\t'\|^ *[a-zA-Z0-9][a-zA-Z0-9]* '|sed -e 's/[\t ]*\([a-zA-Z0-9]*\)[\t ]*\(.*\)/\1'\t'\2/') + __fish_append ',' (mplayer -vfm help | string match -ar '\t.*\t|^ *[a-zA-Z0-9]+ ' | sed -e 's/[\t ]*\([a-zA-Z0-9]*\)[\t ]*\(.*\)/\1'\t'\2/') ) "