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:
Chet Ramey
2025-09-04 12:29:57 -04:00
parent ab17ddb7af
commit a451bfc3f5
46 changed files with 36912 additions and 1499 deletions
+6
View File
@@ -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;
}