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:
Chet Ramey
2024-10-26 12:39:17 -04:00
parent 474743f2da
commit ee3b91dfd9
33 changed files with 2501 additions and 2264 deletions
+4 -1
View File
@@ -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);