commit bash-20130328 snapshot

This commit is contained in:
Chet Ramey
2013-04-26 15:19:32 -04:00
parent c2fa658335
commit 1e8fce0f8d
12 changed files with 5333 additions and 368 deletions
+9
View File
@@ -94,6 +94,15 @@ sh_single_quote (string)
result = (char *)xmalloc (3 + (4 * strlen (string)));
r = result;
if (string[0] == '\'' && string[1] == 0)
{
*r++ = '\\';
*r++ = '\'';
*r++ = 0;
return result;
}
*r++ = '\'';
for (s = string; s && (c = *s); s++)