From: Ian Jackson Date: Sun, 8 Dec 2019 12:49:55 +0000 (+0000) Subject: stest: Move puts $argl into divert branches X-Git-Tag: v0.6.0~26 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7f12e156476f9daf7f57af3a9b76ad88c56ff5b6;p=secnet.git stest: Move puts $argl into divert branches We're going to want to do something slightly different in each one. No functional change yet. Signed-off-by: Ian Jackson --- diff --git a/stest/common.tcl b/stest/common.tcl index f480948..a85239c 100644 --- a/stest/common.tcl +++ b/stest/common.tcl @@ -186,18 +186,20 @@ proc spawn-secnet {location site} { *PRELOAD* { puts -nonewline " $k=$env($k)" } } } - puts " $argl" if {[info exists env($divertk)]} { switch -glob $env($divertk) { i { + puts " $argl" puts -nonewline "run ^ command, hit return " flush stdout gets stdin set argl {} } 0 - "" { + puts " $argl" } * { + puts " $argl" set argl [split $env($divertk)] } }