[MPlayer-dev-eng] [PATCH] suboption escaping

Zoltan Hidvegi mplayer at hzoli.2y.net
Sun Aug 21 05:46:39 CEST 2005


Oded Shimon wrote:
> > My biggest problem with that approach is that for bash scripting, I
> > would have to count the characters in a user-supplied string, add %len%
> > to the beginning, then pass that to mencoder.
> 
> LEN=`echo -n $TEXT | wc -c`
> 
> mencoder -info artist=%$LEN%$TEXT

How about mencoder -info "artist=%${#TEXT}%$TEXT"

Zoli




More information about the MPlayer-dev-eng mailing list