Xfmedia Question

Mathias Brodala info at noctus.net
Thu Jun 28 22:06:08 CEST 2007


Hi.

tomw at videotron.ca, 28.06.2007 21:48:
> This is the script I wrote .... 
> 
> […]
> TRACK = `echo $1 | sed 's/\ /\\\&/g'`
> 
> if [ -z "$VMWARE" ]; then
>     xfmedia $TRACK
> else
>     xfmedia-remote -a $TRACK
> fi
> 
> The script fails when the path / file name has a blank space in it.
> 
> $1=Babe Ruth-TheRunaways.mp3
> 
> […]
> 
> What have I done wrong this time?

You probably can fix this easily by enclosing $TRACK in quotes. Using sed is
unnecessary.


Regards, Mathias

-- 
debian/rules

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20070628/d4447126/attachment.pgp>


More information about the Xfce mailing list