1
0
Fork 0

Quote the result of a string expression function in the log

This commit is contained in:
Duncan Ogilvie 2023-11-07 18:15:30 +01:00
parent 2e1fd1f289
commit 65d57bfd2e
1 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,8 @@ bool cbBadCmd(int argc, char* argv[])
{
if(evalue.isString)
{
dputs_untranslated(StringUtils::Escape(evalue.data).c_str());
varset("$ans", evalue.data.c_str(), true);
dprintf_untranslated("\"%s\"\n", StringUtils::Escape(evalue.data).c_str());
}
else if(evalue.DoEvaluate(value, silent, baseonly, &valsize, &isvar, &hexonly))
{