From: Paul Fertser Date: Tue, 28 Mar 2017 10:23:43 +0000 (+0300) Subject: flash/startup: make program accept filenames with spaces and other characters X-Git-Tag: v0.11.0-rc1~1283 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=b95e0c13aa64ebbc8407ce8b974b1efd44df84c9;ds=sidebyside flash/startup: make program accept filenames with spaces and other characters This should allow to process any path names excluding those that have curly braces. Change-Id: I87bf9ddede11e2b28d5826878eb1338143f73c03 Signed-off-by: Paul Fertser Reviewed-on: http://openocd.zylin.com/4083 Tested-by: jenkins --- diff --git a/src/flash/startup.tcl b/src/flash/startup.tcl index ed905e9424..ff053ae1b2 100644 --- a/src/flash/startup.tcl +++ b/src/flash/startup.tcl @@ -42,6 +42,7 @@ proc program {filename args} { # start programming phase echo "** Programming Started **" + set filename \{$filename\} if {[info exists address]} { set flash_args "$filename $address" } else {