From: epg <> Date: Sat, 30 Oct 2004 19:09:07 +0000 (+0000) Subject: Need the g (global) flag on that substitution operation. X-Git-Url: https://diplodocus.org/git/flac-archive/commitdiff_plain/d5d85722f4fb0fc6ca61102b397aa51a96bddcc6?ds=inline;hp=70dbeaf6b456442a8d9037774b572632f5baa55d Need the g (global) flag on that substitution operation. --- diff --git a/flac2mp3 b/flac2mp3 index 8c4e746..17452bf 100755 --- 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);