From: Matthew Webster <matthew.webster@NDCN.OX.AC.UK>
Subject: Fix crash of Feat

References: https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=FSL;56ace2.1412


--- a/src/misc_tcl/fsl_exec.tcl
+++ b/src/misc_tcl/fsl_exec.tcl
@@ -175,6 +175,7 @@
 	set logout ""
     }
 
+    if { ! [ info exists ::errorCode ] } { set ::errorCode "NONE" } 
     # run and log the actual command
     if { $do_logout } {
 	fsl:echo $logout "\n$thecommand"
@@ -209,3 +210,4 @@
     return -code $errorCode $errmsg 
 }
 
+
--- a/src/misc_tcl/fslstart.tcl
+++ b/src/misc_tcl/fslstart.tcl
@@ -47,7 +47,7 @@
     option add *SpinBox.vcmd2  {validNum %W %V %P %s [lindex [[string range %W 0 end-2] cget -range] 0] [lindex [[string range %W 0 end-2] cget -range] 1]} 
     option add *SpinBox.invcmd2 { set [%W cget -textvariable] $tempSpin; %W config -validate %v }
     lappend auto_path $FSLDIR/tcl/BWidget
-    package require BWidget
+    package require -exact BWidget 1.8
     package require BWFileEntry
     package require BWLabelComboBox 
     package require BWLabelSpinBox 
