Instead of building the temporary list forwards and then reversing
it,
why not just build it in reverse?
If you change this line:
myregs="$myregs $1"
to
myregs="$1 $myregs"
Won't that accomplish the goal without the dual lists, extra error
path, etc?
Yeah, that would be a lot simpler. Not sure what I was thinking here.
New version on the way.
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin(a)linux.vnet.ibm.com