mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-09-01 15:40:45 +02:00
declare builtin changes to reject -i when used with -n; readline changes to make control characters visible in search strings; readline signal handling changes to avoid data corruption and UAF; documentation updates for more consistent quoting
This commit is contained in:
@@ -252,6 +252,12 @@ declare_invalid_opts (int flags_on, int flags_off)
|
||||
sh_invalidopt ("-a");
|
||||
return (EX_BADUSAGE);
|
||||
}
|
||||
/* Ineffective, since you can't have namerefs referencing positional parameters */
|
||||
else if ((flags_on & att_nameref) && (flags_on & att_integer))
|
||||
{
|
||||
builtin_error ("cannot use -n with -i");
|
||||
return (EX_BADUSAGE);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user