File abcde_2.3.99.6-quote.patch of Package abcde

--- abcde.orig	2008-08-22 15:56:42.000000000 -0700
+++ abcde	2008-08-22 16:03:26.000000000 -0700
@@ -767,7 +767,7 @@
 # COMMENT, DALBUM, DARTIST, CDYEAR, CDGENRE (and temporarily) ID3TAGV
 do_tag ()
 {
-	COMMENTOUTPUT="$(eval echo ${COMMENT})"
+	COMMENTOUTPUT="$(eval echo \""${COMMENT}"\")"
 	CDDBDISCID=$(echo $TRACKINFO | cut -d' ' -f1)
 	run_command '' echo "Tagging track $1 of $TRACKS: $TRACKNAME..."
 	# If we want to start the tracks with a given number, we need to modify the
@@ -831,7 +831,7 @@
 					fi	
 					echo TRACKNUMBER=${TRACKNUM:-$1}
 					echo CDDB=$CDDBDISCID
-					if [ "$(eval echo ${COMMENT})" != "" ]; then
+					if [ "$(eval echo \""${COMMENT}"\")" != "" ]; then
 						case "$COMMENTOUTPUT" in
 							*=*) echo "$COMMENTOUTPUT";;
 							*)   echo COMMENT="$COMMENTOUTPUT";;
@@ -861,7 +861,7 @@
 			fi	
 			echo TRACKNUMBER="${TRACKNUM:-$1}"
 			echo CDDB="$CDDBDISCID"
-			if [ "$(eval echo ${COMMENT})" != "" ]; then
+			if [ "$(eval echo \""${COMMENT}"\")" != "" ]; then
 				case "$COMMENTOUTPUT" in
 					*=*) echo "$COMMENTOUTPUT";;
 					*)   echo COMMENT="$COMMENTOUTPUT";;
@@ -964,7 +964,7 @@
 				TEMPARG="PIPE_$MPPENCODER"
 				;;
 		esac
-		IN="$( eval echo "\$$TEMPARG" )"
+		IN="$( eval echo \""\$$TEMPARG"\" )"
 	else
 		IN="$ABCDETEMPDIR/track$1.wav"
 		case "$OUTPUT" in
@@ -1063,7 +1063,7 @@
 				esac
 				;;
 			spx)
-				if [ "$(eval echo ${COMMENT})" != "" ]; then
+				if [ "$(eval echo \""${COMMENT}"\")" != "" ]; then
 					case "$COMMENT" in
 						*=*) ;;
 						*)   COMMENT="COMMENT=$COMMENT" ;;
@@ -1427,9 +1427,9 @@
 		GENRE="$(mungegenre "$GENRE")"
 		YEAR=${CDYEAR:-$CDYEAR}
 		if [ "$VARIOUSARTISTS" = "y" ] ; then
-			PLAYLISTFILE="$(eval echo "$VAPLAYLISTFORMAT")"
+			PLAYLISTFILE="$(eval echo \""$VAPLAYLISTFORMAT"\")"
 		else
-			PLAYLISTFILE="$(eval echo "$PLAYLISTFORMAT")"
+			PLAYLISTFILE="$(eval echo \""$PLAYLISTFORMAT"\")"
 		fi
 		FINALPLAYLISTDIR="$(dirname "$OUTPUTDIR/$PLAYLISTFILE")"
 		mkdir -p "$FINALPLAYLISTDIR"
@@ -1439,7 +1439,7 @@
 				while [ "$DONE" != "y" ]; do
 					read ERASEPLAYLIST
 					case $ERASEPLAYLIST in
-						e|E|a|A|k|K) DONE=y ;;
+						e|E|a|A|k|K|'') DONE=y ;;
 						*) ;;
 					esac
 				done
@@ -2673,7 +2673,7 @@
 	CDDBTRACKNUM=$(expr $UTRACKNUM - 1)
 	if [ "$USEPIPES" = "y" ]; then
 		TEMPARG="PIPERIPPER_$CDROMREADERSYNTAX"
-		FILEARG="$( eval echo "\$$TEMPARG" )"
+		FILEARG="$( eval echo \""\$$TEMPARG"\" )"
 		REDIR=""
 		PIPE_MESSAGE="and encoding "
 	else
@@ -3663,16 +3663,16 @@
 			PIPEENCODERSVARCHECK="PIPE_$MPPENCODER" ;;
 	esac
 	decho "PIPERIPPERSVARCHECK: $( eval echo "\$$PIPERIPPERSVARCHECK" )"
-	if [ "$( eval echo "\$$PIPERIPPERSVARCHECK" )" = "$" ] || \
-	   [ "$( eval echo "\$$PIPERIPPERSVARCHECK" )" = "" ] ; then
+	if [ "$( eval echo \""\$$PIPERIPPERSVARCHECK"\" )" = "$" ] || \
+	   [ "$( eval echo \""\$$PIPERIPPERSVARCHECK"\" )" = "" ] ; then
 		log error "no support for pipes with given ripper"
 		log error "read the USEPIPES file from the source tarball to get help."
 		log error "On a Debian system, it is under /usr/share/doc/abcde/USEPIPES.gz"
 		exit 1;
 	fi
 	decho "PIPEENCODERSVARCHECK: $( eval echo "\$$PIPEENCODERSVARCHECK" )"
-	if [ "$( eval echo "\$$PIPEENCODERSVARCHECK" )" = "$" ] || \
-	   [ "$( eval echo "\$$PIPEENCODERSVARCHECK" )" = "" ] ; then
+	if [ "$( eval echo \""\$$PIPEENCODERSVARCHECK"\" )" = "$" ] || \
+	   [ "$( eval echo \""\$$PIPEENCODERSVARCHECK"\" )" = "" ] ; then
 		log error "no support for pipes with given encoder"
 		log error "read the USEPIPES file from the source tarball to help"
 		log error "on a Debian system, read /usr/share/doc/abcde/USEPIPES.gz"