--- a/extras/cuetag.sh 2006-02-14 19:10:02.000000000 -0500 +++ b/extras/cuetag.sh 2013-08-06 15:55:33.168139462 -0400 @@ -17,8 +17,8 @@ vorbis() { # FLAC tagging - # --remove-vc-all overwrites existing comments - METAFLAC="metaflac --remove-vc-all --import-vc-from=-" + # --remove-all-tags overwrites existing comments + METAFLAC="metaflac --import-tags-from=-" # Ogg Vorbis tagging # -w overwrites existing comments @@ -63,7 +63,7 @@ (for field in $fields; do value="" for conv in `eval echo \\$$field`; do - value=`$CUEPRINT -n $1 -t "$conv\n" $cue_file` + value=`$CUEPRINT -n $1 -t "$conv\n" "$cue_file"` if [ -n "$value" ]; then echo "$field=$value" @@ -96,7 +96,7 @@ for field in $fields; do value="" for conv in `eval echo \\$$field`; do - value=`$CUEPRINT -n $1 -t "$conv\n" $cue_file` + value=`$CUEPRINT -n $1 -t "$conv\n" "$cue_file"` if [ -n "$value" ]; then break @@ -141,14 +141,14 @@ cue_file=$1 shift - ntrack=`cueprint -d '%N' $cue_file` + ntrack=`cueprint -d '%N' "$cue_file"` trackno=1 if [ $# -ne $ntrack ]; then echo "warning: number of files does not match number of tracks" fi - for file in $@; do + for file in "$@"; do case $file in *.[Ff][Ll][Aa][Cc]) vorbis $trackno "$file"