Fix "Evaluate 'script' in the global scope"
[fw/openocd] / src / helper / startup.tcl
index e2ea27d0a466808ac9644ab0d5c9b70f09d0f175..a7c0d5844f8523031e0c612d70c9c59ec990364d 100644 (file)
@@ -55,7 +55,7 @@ add_help_text find "print full path to file according to OpenOCD search rules"
 
 # Find and run a script
 proc script {filename} {
-       uplevel #0 source [find $filename]
+       uplevel #0 [list source [find $filename]]
 }
 add_help_text script "filename of OpenOCD script (tcl) to run"
 add_usage_text script "<file>"