Hello,
set -- -a foo -a bar # for testing while getopts :a: arg; do ...
You can use typical array cryptic emulation with dash for this :) But i can not send this cryptic script to maillist, his parser crashing: "for recipient address <dash@xxxxxxxxxxxxxxx> the policy analysis reported: zpostgrey: Read timed out !!!" :)) See ftp://simtreas.ru/pub/my/dash/arg2array.sh --v vodz