Fix shell escaping (add quotes)

This commit is contained in:
Bruce Hill 2025-02-19 18:24:27 -05:00
parent b89291957a
commit 29849d1457

View File

@ -14,7 +14,7 @@
public Shell_t Shell$escape_text(Text_t text)
{
return Text$replace(text, Text("'"), Text("'\"'\"'"), Text(""), false);
return Texts(Text("'"), Text$replace(text, Text("'"), Text("'\"'\"'"), Text(""), false), Text("'"));
}
public Shell_t Shell$escape_text_array(Array_t texts)