From 189dfa8250909321a662cffb897d158a09bba090 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 17 Dec 2018 13:39:34 -0500 Subject: Fixed handling of escaped double-quotes in `os.spawn()` on curses. --- src/lua.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lua.patch') diff --git a/src/lua.patch b/src/lua.patch index 0e9f587b..a9498759 100644 --- a/src/lua.patch +++ b/src/lua.patch @@ -479,7 +479,7 @@ diff -r 8a23edc91533 src/luaconf.h + param = c; + if (*c == '"') { + param = ++c; -+ while (*c && *c != '"') c++; ++ while (*c && (*c != '"' || *(c - 1) == '\\')) c++; + } else while (*c && *c != ' ') c++; + lua_pushlstring(L, param, c - param); + lua_rawseti(L, -2, lua_rawlen(L, -2) + 1); -- cgit v1.2.3