Hi Nick,
That's an odd problem. I don't know the "why" for it, but
the shell does not apply the quotes within your variable in
that instance. I ran into that once, too.
try replacing: 3dANOVA3 $allsubjects
with: 3dANOVA3 `eval echo "$allsubjects"`
The 'echo' part with the quotes around your variable keeps
the single quotes intact. The 'eval' will then separate
that single command-line item (grouped by "") into the list
of them that you want passed to 3dANOVA3.
- rick