We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c7cad99 + 47c0b12 commit 4e29c44Copy full SHA for 4e29c44
flow/scripts/util.tcl
@@ -1,5 +1,6 @@
1
proc log_cmd {cmd args} {
2
- puts "$cmd [join $args " "]"
+ # log the command, escape arguments with spaces
3
+ puts "$cmd [join [lmap arg $args {expr {[string match {* *} $arg] ? "\"$arg\"" : $arg}}] " "]"
4
$cmd {*}$args
5
}
6
0 commit comments