documentation updates; fix read builtin not to set tty EOL character to NUL if the delimiter is NULL

This commit is contained in:
Chet Ramey
2026-02-09 14:09:42 -05:00
parent 468e98e574
commit 979ae78392
24 changed files with 22295 additions and 51749 deletions
+5 -2
View File
@@ -386,8 +386,11 @@ PARSE_SUBBRACKET (CHAR *p, int flags)
type = *p;
/* POSIX allows a right bracket to appear in a collating symbol. */
while (*++p != L('\0') && SLASH_PATHNAME (*p) == 0 && (type != L('.') && *p == L(']')) == 0)
/* POSIX allows a right bracket to appear in a collating symbol. If we
want to allow it to appear in an equivalence class, uncomment the test
of TYPE against '=' below. */
while (*++p != L('\0') && SLASH_PATHNAME (*p) == 0 &&
(type != L('.') /*&& type != L('=')*/ && *p == L(']')) == 0)
if (*p == type && p[1] == L(']'))
return p;
return NULL;