Package: general Severity: normal
I've written some shell scripts. The part giving errors is: /* CODE BEGIN */ #!/bin/bash EXITCODE[0101]="XXX" EXITCODE[0102]="XXX" EXITCODE[0103]="XXX" EXITCODE[0104]="XXX" EXITCODE[0105]="XXX" EXITCODE[0106]="XXX" EXITCODE[0201]="XXX" EXITCODE[0202]="XXX" EXITCODE[0203]="XXX" EXITCODE[0204]="XXX" EXITCODE[0205]="XXX" EXITCODE[0206]="XXX" EXITCODE[0207]="XXX" EXITCODE[0208]="XXX" EXITCODE[0209]="XXX" EXITCODE[0210]="XXX" EXITCODE[0211]="XXX" EXITCODE[0301]="XXX" EXITCODE[0302]="XXX" EXITCODE[0303]="XXX" EXITCODE[0401]="XXX" EXITCODE[0402]="XXX" EXITCODE[0602]="XXX" EXITCODE[9999]="XXX" # usage: echoResult RESULTCODE "MESSAGE" # write the result of the last task on the screen echoResult() { case $1 in 1) echo -e "\033[55C\033[1A\033[00;32mDone\033[00m" ;; 2) echo -e "\033[55C\033[1A\033[01;33mWarning: $2\033[00m" ;; *) echo -e "\033[55C\033[1A\033[00;31mError: ${EXITCODE[$1]}: $2\033[00m" exit $1 ;; esac } echoResult 0210 "Test-Error" /* CODE END */ This happens if I call the script: /* RESULT BEGIN */ root@rescue ~ # ./t.sh ../t.sh: line 15: 0208: value too great for base (error token is "0208") ../t.sh: line 16: 0209: value too great for base (error Error: XXX: Test-Error /* RESULT END */ The questions now are: What is the difference from 0208 and 0209 to all other indices, and why is 0210 and above OK if 0209 is a "too large" value? BTW: If I use 208 and 209 it works fine without any errors. I already searched the web for that but didn't find anything. Maybe I misread the error? Thanks so far, Steffen Erlecke -- System Information: Debian Release: 6.0.2 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.39.2 (SMP w/8 CPU cores) Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 (charmap=ISO-8859-15) Shell: /bin/sh linked to /bin/bash -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120426135806.20768.51644.reportbug@localhost