fix for cd when curent directory doesn't exist; fix wait -n in posix mode to delete any job that it returns; fix some variables where readonly can be circumvented; fix some overflows in printf

This commit is contained in:
Chet Ramey
2024-02-02 14:39:50 -05:00
parent 138f3cc359
commit 35465406cd
12 changed files with 263 additions and 89 deletions
+9
View File
@@ -2093,6 +2093,9 @@ _rl_readstr_dispatch (_rl_readstr_cxt *cxt, int c)
if (c < 0)
c = CTRL ('C');
/* could consider looking up the function bound to they key and dispatching
off that, but you want most characters inserted by default without having
to quote. */
switch (c)
{
case CTRL('W'):
@@ -2168,6 +2171,12 @@ _rl_readstr_dispatch (_rl_readstr_cxt *cxt, int c)
}
break;
#if 0
case CTRL('_'):
rl_do_undo ();
break;
#endif
default:
#if defined (HANDLE_MULTIBYTE)
if (MB_CUR_MAX > 1 && rl_byte_oriented == 0)