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

Oded Shimon ods15 at ods15.dyndns.org
Fri Aug 19 17:15:34 CEST 2005


On Fri, Aug 19, 2005 at 10:09:21AM -0500, Joey Parrish wrote:
> On Thu, Aug 18, 2005 at 11:51:10PM +0200, Reimar D?ffinger wrote:
> > My %len% approach as I said is not really good, its only advantage is
> > that it is extremly simple to implement in a program.
> 
> 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

ok, it's not the best in the world... :/ But it is doable...

Someone explain to me why we preffer subopts anyway? If we make each 
variable an entire option, we leave all quoting issues to the shell...

- ods15




More information about the MPlayer-dev-eng mailing list