[MacPorts] #23628: fs-traverse doesn't work on paths that contain a space
#23628: fs-traverse doesn't work on paths that contain a space -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts Future Component: base | Version: 1.8.2 Keywords: | Port: -------------------------------------+-------------------------------------- fs-traverse doesn't work on paths that contain a space. fs-traverse says "no such file or directory" even though it's there. Works fine for paths that don't contain spaces. -- Ticket URL: <http://trac.macports.org/ticket/23628> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23628: fs-traverse doesn't work on paths that contain a space -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts Future Component: base | Version: 1.8.2 Keywords: | Port: -------------------------------------+-------------------------------------- Comment(by raimue@…): I guess your problem is only the Tcl syntax for lists. This is a working example of using a path with spaces with fs-traverse: {{{ fs-traverse -- foo {{/Library/Application Support}} { ui_msg $foo } }}} You can pass multiple paths to fs-traverse, which means it expects a Tcl list. Such lists are separated by whitespace: {{{ {foo baz} }}} When you want to pass a path with spaces, it has to be quoted once more. When you want to use variables inside the path names, you will have to use double quotes instead of braces. Note that nested double quotes need backslashes as escape character. {{{ {{foo bar} baz} "\"${prefix}/foo bar\" baz" }}} -- Ticket URL: <http://trac.macports.org/ticket/23628#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23628: fs-traverse doesn't work on paths that contain a space -------------------------------------+-------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts Future Component: base | Version: 1.8.2 Keywords: | Port: -------------------------------------+-------------------------------------- Comment(by raimue@…): In r63718 I added the filename to the debug output to make it easier to identify such an error. -- Ticket URL: <http://trac.macports.org/ticket/23628#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23628: fs-traverse doesn't work on paths that contain a space --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: MacPorts Future Component: base | Version: 1.8.2 Resolution: invalid | Keywords: Port: | --------------------------------------+------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => invalid Comment: Thank you! I was not aware fs-traverse accepted a list of paths. The portfile manpage even says so. I should have read it more closely! -- Ticket URL: <http://trac.macports.org/ticket/23628#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#23628: fs-traverse doesn't work on paths that contain a space --------------------------------------+------------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: base | Version: 1.8.2 Resolution: invalid | Keywords: Port: | --------------------------------------+------------------------------------- Changes (by jmr@…): * milestone: MacPorts Future => -- Ticket URL: <http://trac.macports.org/ticket/23628#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts