--- trunk/mage/usr/lib/mage/mage4.functions.sh 2012/10/25 07:07:28 1961 +++ trunk/mage/usr/lib/mage/mage4.functions.sh 2012/10/25 07:17:17 1962 @@ -1887,8 +1887,9 @@ count="$(echo ${oldprotected} | sed 's:.*\/._cfg\(.*\)_.*:\1:')" done - # dirty hack to convert 0001 -> 1; 0120 -> 120 etc - x="${#count}" + # convert 0001 -> 1; 0120 -> 120 etc + # use bash internal base functions to this task + x="$((10#${count}))" for (( i=0; i