From 216714c00867fb180e93a9c6cafa0b48b1db358c Mon Sep 17 00:00:00 2001 From: "andrew@andrews-corner.org" Date: Mon, 15 Apr 2013 02:28:15 +0000 Subject: [PATCH] Removal of some problematic whitespace generated on MacOSX. Thanks to richardjamespearce for the report and patch. Closes issue 81. git-svn-id: http://abcde.googlecode.com/svn/trunk@378 a0fa61bc-5347-0410-a1a9-7f54aa4e1825 --- abcde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/abcde b/abcde index dd56fc2..ababbd3 100755 --- a/abcde +++ b/abcde @@ -433,8 +433,8 @@ getcddbinfo() gettracknum() { if [ -n "$STARTTRACKNUMBER" ] ; then - # Get the trackpadding from the current track - CURRENTTRACKPADDING=$(echo -n $UTRACKNUM | wc -c) + # Get the trackpadding from the current track, also trim whitespace for MacOSX + CURRENTTRACKPADDING=$(echo -n $UTRACKNUM | wc -c | tr -d ' ') TRACKNUM=$( printf %0.${CURRENTTRACKPADDING}d $(expr ${UTRACKNUM} + ${STARTTRACKNUMBER} - $FIRSTTRACK )) else TRACKNUM=${UTRACKNUM} -- 2.20.1