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