]> diplodocus.org Git - flac-archive/commitdiff
Need the g (global) flag on that substitution operation.
authorepg <>
Sat, 30 Oct 2004 19:09:07 +0000 (19:09 +0000)
committerepg <>
Sat, 30 Oct 2004 19:09:07 +0000 (19:09 +0000)
flac2mp3

index 8c4e746..17452bf 100755 (executable)
--- a/flac2mp3
+++ b/flac2mp3
@@ -129,7 +129,7 @@ sub flac2mp3 {
     # any single quotes in the filename by closing the quote ('),
     # putting an escaped quote (\'), and then reopening the quote (').
     for ($fn, $title, $artist, $album, $date) {
-        s/'/'\\''/;
+        s/'/'\\''/g;
     }
 
     $outfile = sprintf("$artist ($album) \%02s $title.mp3", $track);