commit bash-20140801 snapshot

This commit is contained in:
Chet Ramey
2014-08-29 09:13:51 -04:00
parent 02372bbd62
commit 0e0a1bbcc8
19 changed files with 17882 additions and 3410 deletions
+10 -1
View File
@@ -3063,7 +3063,16 @@ read_token (command)
parser_state &= ~PST_ASSIGNOK;
peek_char = shell_getc (1);
/* If we are parsing a command substitution and we have read a character
that marks the end of it, don't bother to skip over quoted newlines
when we read the next token. We're just interested in a character
that will turn this into a two-character token, so we let the higher
layers deal with quoted newlines following the command substitution. */
if ((parser_state & PST_CMDSUBST) && character == shell_eof_token)
peek_char = shell_getc (0);
else
peek_char = shell_getc (1);
if (character == peek_char)
{
switch (character)