diff --git a/src/punk86.vfs/lib/app-shellspy/shellspy.tcl b/src/punk86.vfs/lib/app-shellspy/shellspy.tcl index 1d271c88..c5ce98d4 100644 --- a/src/punk86.vfs/lib/app-shellspy/shellspy.tcl +++ b/src/punk86.vfs/lib/app-shellspy/shellspy.tcl @@ -303,11 +303,13 @@ namespace eval shellspy { proc do_in_powershell_terminal {args} { variable shellspy_status_log shellfilter::log::write $shellspy_status_log "do_in_powershell_terminal got '$args'" + set args [do_callback powershell {*}$args] + set params [do_callback_parameters powershell] dict set params -teehandle shellspy set params [dict merge $params [get_channel_config $::testconfig]] ;#working: 5 unbuffered, 6 linebuffered set cmdlist [list pwsh -nologo -noprofile -c {*}$args] - set cmdlist [shellfilter::get_scriptrun $cmdlist] + set cmdlist [shellfilter::get_scriptrun_from_cmdlist_dquote_if_not $cmdlist] shellfilter::log::write $shellspy_status_log "do_in_powershell_terminal as script: '$cmdlist'" set exitinfo [shellfilter::run $cmdlist {*}$params]