Print

Print


Hi Lazar,
                Thank you for the modification, unfortunately this is a non-portable solution - the OSX readlink does not support the -e flag!

Many Thanks
Matthew

> Hello everybody
> 
> Not sure if this is the right place, but I do not know any other fsl email list.
> 
> I think a minor modification is needed to $FSLDRI/bin/imtest
> 
> maybe it was done already, maybe not
> 
> imtest which I have has this section
> 
> for i in 1 2 3 4 5 6 7 8 9 10 11 12
> do
> if [ -h $inputfile ] ; then
> inputfile=`readlink $inputfile`;
> fi
> done
> 
> I would think that in place of "readlink" it should be "readlink -e"
> and remove the for-loop:
> 
> if [ -h $inputfile ] ; then
> inputfile=`readlink -e $inputfile`;
> fi
> 
> 
> That is we are trying to check if the "target" exists.
> Current imtest will work for absolute links but might fail for relative ones.
> 
> with the modification it should work for all.
> 
> Thank you
> 
> Lazar
>