[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openocd-development
Subject:    [OpenOCD-devel] [PATCH]: 1e9e144 flash/startup: make program accept filenames with spaces and other 
From:       gerrit () openocd ! org (gerrit)
Date:       2017-03-28 10:25:12
Message-ID: 20170328102512.821EE2522991 () mail ! openocd ! org
[Download RAW message or body]

This is an automated email from Gerrit.

Paul Fertser (fercerpav@gmail.com) just uploaded a new patch set to Gerrit, which you \
can find at http://openocd.zylin.com/4083

-- gerrit

commit 1e9e144b271bc2f6d311b19b60637c3056a1e533
Author: Paul Fertser <fercerpav@gmail.com>
Date:   Tue Mar 28 13:23:43 2017 +0300

    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 <fercerpav@gmail.com>

diff --git a/src/flash/startup.tcl b/src/flash/startup.tcl
index fbb8d8e..df37ea4 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 {

-- 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic