mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-28 07:59:50 +02:00
do not require leading . for rl color prefix etension; fix for isearch in single-byte locales; next set of doc updates (SIGNALS); add warning for invalid job id; allow function names to be non-identifiers in posix mode
This commit is contained in:
@@ -343,8 +343,8 @@ static int two_tokens_ago;
|
||||
|
||||
/* Someday compoundcmd_lineno will be an array of these structs. */
|
||||
struct tokeninfo {
|
||||
int tok;
|
||||
int lineno;
|
||||
int tok;
|
||||
};
|
||||
|
||||
/* The line number in a script where a compound command begins. The
|
||||
@@ -6790,6 +6790,9 @@ report_syntax_error (const char *message)
|
||||
free (msg);
|
||||
msg = p;
|
||||
}
|
||||
if (shell_eof_token && current_token != shell_eof_token)
|
||||
parser_error (line_number, _("syntax error near unexpected token `%s' while looking for matching `%c'"), msg, shell_eof_token);
|
||||
else
|
||||
parser_error (line_number, _("syntax error near unexpected token `%s'"), msg);
|
||||
free (msg);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user