From 6db6ea879a46283460d4aed192966938822091bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Sun, 22 Mar 2015 12:12:23 +0000 Subject: [PATCH] [INTERPRETER] * BUG: Shell$() now quotes quotes correctly. git-svn-id: svn://localhost/gambas/trunk@6997 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- main/gbx/gbx_subr_string.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/gbx/gbx_subr_string.c b/main/gbx/gbx_subr_string.c index c7536ff49..dc63019be 100644 --- a/main/gbx/gbx_subr_string.c +++ b/main/gbx/gbx_subr_string.c @@ -997,7 +997,9 @@ __SHELL: { c = str[i]; if (c == '\'') - STRING_make_char(c); + { + STRING_make("'\\'", 3); + } STRING_make_char(c); /* if (c == '\n')