From 4061b6d47c6e01be0b01664647e70308fd5cdd50 Mon Sep 17 00:00:00 2001 From: Daniel Bee Date: Mon, 23 Feb 2026 15:42:26 +0000 Subject: [PATCH] Fix missing escapes on wave scripts The wave script was being sourced at point when the ScriptFile was being created, instead of when the ScriptFile is eventuallly sourced. Leading to regressed behaviour vs previous release. --- OsvvmScriptsSimulateSupport.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsvvmScriptsSimulateSupport.tcl b/OsvvmScriptsSimulateSupport.tcl index b6958d6..1fc19c1 100644 --- a/OsvvmScriptsSimulateSupport.tcl +++ b/OsvvmScriptsSimulateSupport.tcl @@ -90,7 +90,7 @@ proc ScriptCreateIfWaveDoExists {ScriptToRun LibraryUnit} { variable ScriptFile if {[file exists $ScriptToRun]} { - puts $ScriptFile " if {[catch {source $ScriptToRun} errorMsg]} {" + puts $ScriptFile " if {\[catch {source $ScriptToRun} errorMsg\]} {" puts $ScriptFile " CallbackOnError_WaveDo \$errorMsg \$::errorInfo [file dirname $ScriptToRun] $LibraryUnit" puts $ScriptFile " }" }