Am 25.01.2010 00:19, schrieb Adrian C.:
Now I want a variable or array at the top of the script so I could
easily add, remove and comment plugins... rewriting the above example:
vdrplug=(-Pfemon
-Psoftdevice -vo xv:full -ao alsa:mixer:pcm=default
)
$vdrbin -L $vdrlib ${vdrpl...@]}
On Sat, Jan 30, 2010 at 3:07 AM, Udo Richter udo_rich...@gmx.de wrote:
The correct way to place every array element as one parameter, without
doing any additional whitespace separation, is this:
$vdrbin -L $vdrlib ${vdrpl...@]}
In contrast, ${vdrplug[*]} merges all to one parameter,
Am 30.01.2010 19:23, schrieb VDR User:
On Sat, Jan 30, 2010 at 3:07 AM, Udo Richter udo_rich...@gmx.de wrote:
The correct way to place every array element as one parameter, without
doing any additional whitespace separation, is this:
$vdrbin -L $vdrlib ${vdrpl...@]}
In contrast,
Use double-quotes to surround your plugins and single-quotes for
plugin options. For example:
VDR=$vdrbin -L $vdrlib
PLUGINS=-Pfemon -P'softdevice -vo xv:full -ao alsa:mixer:pcm=default'
eval $VDR $PLUGINS
___
vdr mailing list
vdr@linuxtv.org
On Sun, 24 Jan 2010, VDR User wrote:
Use double-quotes to surround your plugins and single-quotes for
plugin options.
Excellent! Thank you.
--
Adrian C. (anrxc) | anrxc..sysphere.org | PGP ID: D20A0618
PGP FP: 02A5 628A D8EE 2A93 996E 929F D5CB 31B7 D20A 0618