From 89affc872b1f345e26a24f7debb95c843ff44fae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 9 Jan 2010 11:33:38 +0200 Subject: [PATCH] More sed \? -> \{0,1\} portability fixes. --- contrib/mplayer | 2 +- contrib/rpm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/mplayer b/contrib/mplayer index a30dae66..1dd5010b 100644 --- a/contrib/mplayer +++ b/contrib/mplayer @@ -234,7 +234,7 @@ _mplayer() COMPREPLY=( $( compgen -W '$( $cmd -list-options 2>/dev/null | \ sed -ne '1,/^[[:space:]]*Name/d' \ -e "s/^[[:space:]]*/-/" -e "s/[[:space:]:].*//" \ - -e "/^-\(Total\|.*\*\)\?$/!p" )' -- "$cur" ) ) + -e "/^-\(Total\|.*\*\)\{0,1\}$/!p" )' -- "$cur" ) ) ;; *) _filedir '@(mp?(e)g|MP?(E)G|wm[av]|WM[AV]|avi|AVI|asf|ASF|vob|VOB|bin|BIN|dat|DAT|vcd|VCD|ps|PS|pes|PES|fl[iv]|FL[IV]|viv|VIV|rm?(j)|RM?(J)|ra?(m)|RA?(M)|yuv|YUV|mov|MOV|qt|QT|mp[234]|MP[234]|m4[av]|M4[AV]|og[gmavx]|OG[GMAVX]|w?(a)v|W?(A)V|dump|DUMP|mk[av]|MK[AV]|m4a|M4A|aac|AAC|m[24]v|M[24]V|dv|DV|rmvb|RMVB|mid|MID|ts|TS|3g[p2]|mpc|MPC|flac|FLAC|vro|VRO|divx|DIVX|aif?(f)|AIF?(F)|m2ts|M2TS|vdr|VDR|xvid|XVID|ape|APE)' diff --git a/contrib/rpm b/contrib/rpm index f39e76d6..525da459 100644 --- a/contrib/rpm +++ b/contrib/rpm @@ -97,7 +97,7 @@ _rpm() --eval|-E) # get a list of macros COMPREPLY=( $( rpm --showrc | sed -ne \ - 's/^-\?[0-9]\{1,\}[:=][[:space:]]\{1,\}\('${cur#%}'[^[:space:](]*\).*/\1/p' ) ) + 's/^-\{0,1\}[0-9]\{1,\}[:=][[:space:]]\{1,\}\('${cur#%}'[^[:space:](]*\).*/\1/p' ) ) COMPREPLY=( "${COMPREPLY[@]/#/%}" ) return 0 ;;