substituted before sending data, to allow for special chars to be
added to the string.
they accept only one arg as the command string to be evaluated.
Prior behavior left some ambiguity as to what was eval'ed where.
EvalOther, EvalSlave may need some sanitation as well.
+ (EvalCmd): Changed EvalSocket functionality to have the \'s
+ substituted before sending data, to allow for special chars to be
+ added to the string.
2000-09-19 Jeff Hobbs <hobbs@scriptics.com>
Prompt "\n\"$PRIV(app)\" alive\n" [CmdGet $PRIV(console)]
}
}
+ # Sockets get \'s interpreted, so that users can
+ # send things like \n\r or explicit hex values
+ set cmd [subst -novariables -nocommands $cmd]
#puts [list $PRIV(app) $cmd]
set code [catch {puts $PRIV(app) $cmd ; flush $PRIV(app)} result]
if {$code && [eof $PRIV(app)]} {