--- trunk/mage/usr/lib/mage/mage4.functions.sh 2014/01/06 14:09:10 2371 +++ trunk/mage/usr/lib/mage/mage4.functions.sh 2014/01/06 14:17:37 2372 @@ -3067,13 +3067,10 @@ local i # very basic getops - for i in $* - do - case $1 in - --method) shift; method="$1" ;; - esac - shift - done + case $1 in + --method) shift; method="$1" ;; + esac + shift local list="$@" # sanity check