Hi,
The .fsf files are read in and interpreted by TCL and so they do not have immediate access to shell variables and do not use the exact same syntax. It would be possible to write some appropriate TCL code to make these work, but it may just be simpler to run a global search and replace on your fsf file prior to using it. If you want to experiment with the TCL then you can have a look at the TCL files at $FSLDIR/tcl/*.tcl and $FSLDIR/bin/Runtcl to see how FSLDIR is imported from the environment and used there.
All the best,
Mark
> On 17 Feb 2017, at 16:39, Horea Christian <[log in to unmask]> wrote:
>
> I am generating a design matrix by running `feat_model run0` in a directory containing a run0.fsf file.
>
> The feat_model call will fail if I use the following code in run0.fsf to specify the location of the FLOBS:
>
> ```
> set fmri(default_bfcustom) "$FSLDIR/etc/default_flobs.flobs/hrfbasisfns.txt"
> ```
>
> $FSLDIR evaluates to /usr/share/fsl on my system, so if it expanded it would work. feat_model indeed works if I replace the above with:
>
> ```
> set fmri(default_bfcustom) "/usr/share/fsl/etc/default_flobs.flobs/hrfbasisfns.txt"
> ```
>
> Is there any easy way to make sure that the shell variable is expanded?
|