mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-01 07:53:38 +02:00
commit bash-20170915 snapshot
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user