[Neurodebian-users] FSL randomise_parallel has a bashism that causes the defragmentation step to fail under dash

Chase,Philip B pbc at UFL.EDU
Tue Nov 6 20:03:19 UTC 2012


Where should I report a bug in FSL—neurodebian packaged fsl-5.0, 5.0.0-1~nd60+1 ?

I found a bug in randomise_parallel that causes the defragmentation step to fail at the end of the randomise run.  The error  log of the defragment job shows

./GM_mod_merg_s3.defragment: 15: Bad substitution
./GM_mod_merg_s3.defragment: 15: Bad substitution
...
./GM_mod_merg_s3.defragment: 15: Bad substitution

If the shell is changed from dash to bash the defragment jobs works fine.  This patch does the trick:

diff --git a/randomise_parallel b/randomise_parallel
index dc112c9..589033c 100755
--- a/randomise_parallel
+++ b/randomise_parallel
@@ -128,7 +128,7 @@ GENERATE_ID=`$FSLDIR/bin/fsl_sub -T ${REQUESTED_TIME} -N ${BASENAME}.generate -l

 #stage2:
 cat <<combineScript > ${DIRNAME}/${BASENAME}.defragment
-#!/bin/sh
+#!/bin/bash
 echo "Merging stat images"
 for FIRSTSEED in ${ROOTNAME}_SEED1_*_p_*.nii.gz ${ROOTNAME}_SEED1_*_corrp_*.nii.gz ; do
   ADDCOMMAND=""

Where do I report this?  FSL seems to have no bug reporting mechanism, while http://neuro.debian.net/pkgs/fsl.html directs me to this list and not a bug reporting site.

Thanks,
Philip

Philip B. Chase
Assistant Director
Clinical and Translational Science IT
University of Florida
pbc at ufl.edu
352-294-5164
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/neurodebian-users/attachments/20121106/f8860f4f/attachment.html>


More information about the Neurodebian-users mailing list