diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-02-19 18:24:27 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-02-19 18:24:27 -0500 |
| commit | 29849d145787fac5df454d9314c98570488045ce (patch) | |
| tree | c6c032bdcdc91f52151dd4f2883ba608157ccda0 /stdlib | |
| parent | b89291957acbefbb0e9db90421411094ebc6aed8 (diff) | |
Fix shell escaping (add quotes)
Diffstat (limited to 'stdlib')
| -rw-r--r-- | stdlib/shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
