paulster;444085 Wrote:
> Without diving into the code first to check, is this the same problem
> that causes flac2mp3 to barf on filenames with a $ sign in them? I've
> removed $ signs from the couple of filenames I had, but I'd happily
> implement a change to the code if it meant it wasn't going to catch me
> out in future (same with the backticks issue).
Yes.
The $ char is also interpolated in double quotes. Change:
Code:
--------------------
$quotedsrc =~ s/`/\\`/g;
$quoteddest =~ s/`/\\`/g;
--------------------
to this:
Code:
--------------------
my $shell_metas_in_dq = qr/[`\$]/;
$quotedsrc =~ s/($shell_metas_in_dq)/\\$1/go;
$quoteddest =~ s/($shell_metas_in_dq)/\\$1/go;
--------------------
--
MrC
------------------------------------------------------------------------
MrC's Profile: http://forums.slimdevices.com/member.php?userid=468
View this thread: http://forums.slimdevices.com/showthread.php?t=14697
_______________________________________________
ripping mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/ripping