Concatenate option steps on -t/-T option
authorSteve McIntyre <steve@einval.com>
Sun, 26 Oct 2014 16:38:02 +0000 (16:38 +0000)
committerSteve McIntyre <steve@einval.com>
Sun, 26 Oct 2014 16:38:02 +0000 (16:38 +0000)
Thanks to Charles Steinkuehler for the patch. Closes: #391294 in
Debian

abcde
changelog

diff --git a/abcde b/abcde
index 0343a61..c607b72 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -3505,7 +3505,7 @@ while getopts 1a:bc:C:d:Defghj:klLmMnNo:pPr:s:S:t:T:UvVxX:w:W:z opt ; do
                X) CUE2DISCID="$OPTARG" ;;
                w) COMMENT="$OPTARG" ;;
                W) if echo $OPTARG | grep "[[:digit:]]" > /dev/null 2>&1 ; then
-                        STARTTRACKNUMBER="${OPTARG}01"
+                        STARTTRACKNUMBER="${OPTARG}$(printf %02d ${STARTTRACKNUMBER:-01})"
                         STARTTRACKNUMBERTAG="y"
                         COMMENT="CD${OPTARG}"
                         DISCNUMBER="${OPTARG}"
index 3192d2e..ad67a87 100644 (file)
--- a/changelog
+++ b/changelog
@@ -29,6 +29,8 @@ abcde 2.5.5 UNRELEASED
   * Remove the no-op -B option. Closes: #426531 in Debian
   * Document the need to escape parentheses in tag comments.
     Closes: #256941 in Debian.
+  * Concatenate option steps on -t/-T option. Thanks to Charles
+    Steinkuehler for the patch. Closes: #391294 in Debian
 
  -- Steve McIntyre <93sam@debian.org>  Sat, 25 Oct 2014 12:11:16 -0700