commit bash-20170915 snapshot

This commit is contained in:
Chet Ramey
2017-09-20 09:30:30 -04:00
parent a27e6ec35a
commit 1ebae4666c
6 changed files with 21 additions and 14 deletions
+3 -1
View File
@@ -255,7 +255,9 @@ fix errors in previous commands quickly.
@ifset BashFeatures
History expansion is performed immediately after a complete line
is read, before the shell breaks it into words.
is read, before the shell breaks it into words, and is performed
on each line individually without taking quoting on previous lines into
account.
@end ifset
History expansion takes place in two parts. The first is to determine
-4
View File
@@ -230,8 +230,6 @@ ansic_quote (str, flags, rlen)
*r++ = '$';
*r++ = '\'';
s = str;
for (s = str; c = *s; s++)
{
b = l = 1; /* 1 == add backslash; 0 == no backslash */
@@ -305,11 +303,9 @@ ansic_wshouldquote (string)
{
const wchar_t *wcs;
wchar_t wcc;
wchar_t *wcstr = NULL;
size_t slen;
slen = mbstowcs (wcstr, string, 0);
if (slen == (size_t)-1)