From: Ryan Lucia Date: Tue, 18 Jun 2019 17:30:31 +0000 (-0400) Subject: [eglib] Don't escape chars in argv parsing enclosed in single quotes (mono/mono#15047) X-Git-Tag: submit/tizen/20210909.063632~10331^2~5^2~1124 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f44d2c12161aec9f84e64561988c243f4d7a9de6;p=platform%2Fupstream%2Fdotnet%2Fruntime.git [eglib] Don't escape chars in argv parsing enclosed in single quotes (mono/mono#15047) Fixes mono/mono#14724 This may need to be reverted if customers are relying on the existing behavior, but we can cross that bridge when we come to it. The larger issue of incompatibility with .NET Core should be addressed later. Commit migrated from https://github.com/mono/mono/commit/6c5bbbd757344fa1a39922917c85091ee35dbe1e --- diff --git a/src/mono/mono/eglib/gshell.c b/src/mono/mono/eglib/gshell.c index 6839eee..820ac46 100644 --- a/src/mono/mono/eglib/gshell.c +++ b/src/mono/mono/eglib/gshell.c @@ -62,7 +62,7 @@ split_cmdline (const gchar *cmdline, GPtrArray *array, GError **gerror) g_ptr_array_add (array, g_string_free (str, FALSE)); str = g_string_new (""); } - } else if (c == '\\'){ + } else if (c == '\\' && quote_char == '\"'){ escaped = TRUE; } else g_string_append_c (str, c);