Hi,
there is a bug in the scripts bedpostx_mgh and fsl_sub_mgh. Both use code that do not conform to the standard shell syntax and work only with bash. This does not work in system that do not link /bin/sh to /bin/bash (as is the case in Ubuntu). Both scripts must use #!/bin/bash as the interpreter command in the first line.
Peter