From 29849d145787fac5df454d9314c98570488045ce Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 19 Feb 2025 18:24:27 -0500 Subject: Fix shell escaping (add quotes) --- stdlib/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stdlib/shell.c') diff --git a/stdlib/shell.c b/stdlib/shell.c index 694d155b..593301a2 100644 --- a/stdlib/shell.c +++ b/stdlib/shell.c @@ -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) -- cgit v1.2.3