Fix "Evaluate 'script' in the global scope"
authorFreddie Chopin <freddie.chopin@gmail.com>
Sat, 22 Oct 2011 07:53:55 +0000 (09:53 +0200)
committerSpencer Oliver <spen@spen-soft.co.uk>
Mon, 24 Oct 2011 17:40:52 +0000 (17:40 +0000)
commitea10093422df328bbb33c78d21dc4646a193f8bf
treefdfe5d8bd6794e2d0452c632c4af9c22390d56be
parente5fd6131fe781631797631ba8ba48cf361ff7635
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>
src/helper/startup.tcl