~ubuntu-branches/ubuntu/lucid/abcde/lucid

« back to all changes in this revision

Viewing changes to abcde

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2007-10-14 12:40:38 UTC
  • Revision ID: james.westby@ubuntu.com-20071014124038-wcd7wczh66c1msuh
Tags: 2.3.99.6-1ubuntu2
Really fix Debian bug 389981.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3221
3221
else
3222
3222
        while [ $# -gt 0 ]; do
3223
3223
                # Range parsing code courtesy of Vincent Ho
3224
 
                RSTART=$(echo $1 | cut -f1 -d-)
3225
 
                REND=$(echo $1 | cut -f2 -d-)
3226
 
                if [ "$RSTART" = "$REND" ]; then
3227
 
                        NEWTRACKS="$RSTART"
 
3224
                # Cleaned up to use shell built-ins by Charles Steinkuehler
 
3225
                if [ "${1#*[^0-9-]}" != "$1" ]; then
 
3226
                        log error "syntax error while processing track numbers"
3228
3227
                else
3229
 
                        NEWTRACKS=$(f_seq_line $RSTART $REND)
 
3228
                        RSTART=${1%%-*}
 
3229
                        REND=${1##*-}
 
3230
                        while [ ${RSTART:=1} -le ${REND:=0} ] ; do
 
3231
                                TRACKQUEUE="$TRACKQUEUE $RSTART"
 
3232
                                RSTART=$(( $RSTART + 1 ))
 
3233
                        done
3230
3234
                fi
3231
 
                TRACKQUEUE=$(echo "$TRACKQUEUE" "$NEWTRACKS")
3232
3235
                shift
3233
3236
        done
3234
3237
fi