diff options
author | Freddie Chopin <freddie.chopin@gmail.com> | 2011-10-22 09:53:55 +0200 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2011-10-24 17:40:52 +0000 |
commit | ea10093422df328bbb33c78d21dc4646a193f8bf (patch) | |
tree | fdfe5d8bd6794e2d0452c632c4af9c22390d56be /src/helper | |
parent | e5fd6131fe781631797631ba8ba48cf361ff7635 (diff) | |
download | riscv-openocd-ea10093422df328bbb33c78d21dc4646a193f8bf.zip riscv-openocd-ea10093422df328bbb33c78d21dc4646a193f8bf.tar.gz riscv-openocd-ea10093422df328bbb33c78d21dc4646a193f8bf.tar.bz2 |
Fix "Evaluate 'script' in the global scope"
This fixes commit Evaluate 'script' in the global scope. It caused
Windows builds behave differently than before because path was evaluated twice
and backslashes from Windows' paths got unescaped and effectively wiped out.
Configs could only be passed with "-f ../dir/config.cfg" or "-f
..\\dir\\config.cfg" instead of usual "-f dir/config.cfg" (or using backslash)
as previously.
Change-Id: I13b4abac6dbe6d770cc11a4e61c9421ef340da83
Author: Steve Bennett <steveb@workware.net.au>
Signed-off-by: Freddie Chopin <freddie.chopin@gmail.com>
Reviewed-on: http://openocd.zylin.com/40
Tested-by: jenkins
Reviewed-by: Xiaofan <xiaofanc@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/startup.tcl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/startup.tcl b/src/helper/startup.tcl index e2ea27d..a7c0d58 100644 --- a/src/helper/startup.tcl +++ b/src/helper/startup.tcl @@ -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>" |