Package: abcde
Version: 2.3.99.2-1
Severity: normal
Tags: patch

$ abcde 1-12
[ERROR] abcde: syntax error while processing track numbers

According to the manpage, this should work:

 Accepts ranges of track numbers - "abcde 1-5 7 9" will process tracks
 1, 2, 3, 4, 5, 7, and 9.

The problem is line 110:

    if echo i | grep -q "[[:digit:]]" ; then
           ^^^

It works as expected if I change this to 

    if echo $i | grep -q "[[:digit:]]" ; then

-- System Information:
Debian Release: testing/unstable
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'proposed-updates'), 
(500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13.1
Locale: LANG=en_GB.ISO8859-15, LC_CTYPE=en_GB.ISO8859-15 (charmap=ISO-8859-15)

Versions of packages abcde depends on:
ii  cd-discid                 0.9-1          CDDB DiscID utility
ii  cdda2wav                  4:2.01+01a03-4 Creates WAV files from audio CDs
ii  cdparanoia                3a9.8-11       An audio extraction tool for sampl
ii  flac                      1.1.2-3+b1     Free Lossless Audio Codec - comman
ii  vorbis-tools              1.1.1-1        several Ogg Vorbis tools
ii  wget                      1.10.2-1       retrieves files from the web

abcde recommends no packages.

-- no debconf information
--- /usr/bin/abcde      2005-12-12 22:07:20.000000000 +0000
+++ bin/abcde   2006-01-02 11:14:44.000000000 +0000
@@ -107,7 +107,7 @@
 f_seq_line ()
 {
        i=$1
-       if echo i | grep -q "[[:digit:]]" ; then
+       if echo $i | grep -q "[[:digit:]]" ; then
                while [ $i -ne `expr $2 + 1` ]
                do
                        printf $i" "

Reply via email to