mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-07 04:10:49 +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:
@@ -272,6 +272,13 @@ sh_nojobs (const char *s)
|
||||
else
|
||||
builtin_error (_("no job control"));
|
||||
}
|
||||
|
||||
void
|
||||
sh_invalidjob (const char *s)
|
||||
{
|
||||
builtin_error (_("%s: invalid job specification"), s);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#if defined (RESTRICTED_SHELL)
|
||||
@@ -693,6 +700,14 @@ get_job_spec (WORD_LIST *list)
|
||||
|
||||
if (*word == '%')
|
||||
word++;
|
||||
else
|
||||
#if 1
|
||||
/* This could be builtin_error or sh_invalidjob() */
|
||||
builtin_warning (_("%s: job specification requires leading `%%'"), word);
|
||||
#else
|
||||
/* TAG:bash-5.4 10/23/2024 */
|
||||
return (BAD_JOBSPEC);
|
||||
#endif
|
||||
|
||||
if (DIGIT (*word) && all_digits (word))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user