[Abcde-users] [abcde] r378 committed - Removal of some problematic whitespace generated on MacOSX....
abcde at googlecode.com
abcde at googlecode.com
Mon Apr 15 03:28:29 BST 2013
Revision: 378
Author: andrew at andrews-corner.org
Date: Sun Apr 14 19:28:15 2013
Log: Removal of some problematic whitespace generated on MacOSX.
Thanks to richardjamespearce for the report and patch.
Closes issue 81.
http://code.google.com/p/abcde/source/detail?r=378
Modified:
/trunk/abcde
=======================================
--- /trunk/abcde Sun Apr 7 19:21:27 2013
+++ /trunk/abcde Sun Apr 14 19:28:15 2013
@@ -433,8 +433,8 @@
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}
More information about the Abcde-users
mailing list