From 5bfedc23e0570456f79eb7d5c7b550cde5e23152 Mon Sep 17 00:00:00 2001 From: Julian Noble Date: Tue, 23 May 2023 05:46:27 +1000 Subject: [PATCH] housekeeping newlines etc --- scriptlib/tests/pipeline1.tcl | 114 ++++++++++++++++----------------- src/modules/shellthread-1.6.tm | 4 +- 2 files changed, 59 insertions(+), 59 deletions(-) diff --git a/scriptlib/tests/pipeline1.tcl b/scriptlib/tests/pipeline1.tcl index e0a8fc21..afc36d4e 100644 --- a/scriptlib/tests/pipeline1.tcl +++ b/scriptlib/tests/pipeline1.tcl @@ -1,57 +1,57 @@ - -#----------------------------------------------------------- -# a formatting experiment -#----------------------------------------------------------- - -x.=val { -a -b c -d e f - g h i -} |> { - - - - set data} |> { - - - set data} |> { - - puts "raw: $data" - set data -} \ -|> \ - \ - \ -l.=linelist %data%\ - \ - |> \ - { - puts "linelist: $data" - puts "args: $args" - set data - } \ - { - - .=lrange $data 1 end-1 |>\ - b.=string toupper - - puts stdout "==================================" - puts stdout [info vars] - foreach v [info vars] { - puts stderr " '$v'" - } - puts stdout "==================================" - return $b -} |> b.=val - -puts $a -puts $b - - - + +#----------------------------------------------------------- +# a formatting experiment +#----------------------------------------------------------- + +x.= val { +a +b c +d e f + g h i +} |> { + + + + set data} |> { + + + set data} |> { + + puts "raw: $data" + set data +} \ +|> \ + \ + \ +l.=linelist %data%\ + \ + |> \ + { + puts "linelist: $data" + puts "args: $args" + set data + } \ + { + + .=lrange $data 1 end-1 |>\ + b.=string toupper + + puts stdout "==================================" + puts stdout [info vars] + foreach v [info vars] { + puts stderr " '$v'" + } + puts stdout "==================================" + return $b +} |> b.=val + +puts $a +puts $b + + + diff --git a/src/modules/shellthread-1.6.tm b/src/modules/shellthread-1.6.tm index 142742a8..3a1926e3 100644 --- a/src/modules/shellthread-1.6.tm +++ b/src/modules/shellthread-1.6.tm @@ -431,10 +431,10 @@ namespace eval shellthread::manager { # then it's likely we will need to use the caller's auto_path and tcl::tm::list to find things #The caller can tune the thread's package search by providing a settingsdict if {![dict exists $::settingsinfo tcl_tm_list]} { - tcl::tm::add %mp% + ::tcl::tm::add %mp% } else { tcl::tm::remove {*}[tcl::tm::list] - tcl::tm::add {*}[dict get $::settingsinfo tcl_tm_list] + ::tcl::tm::add {*}[dict get $::settingsinfo tcl_tm_list] } if {![dict exists $::settingsinfo auto_path]} { set ::auto_path [list %ap%]