next set of documentation updates (word splitting), rearrange a test in readline's tilde expansion to avoid touching uninitialized data

This commit is contained in:
Chet Ramey
2024-10-22 15:40:46 -04:00
parent 261c6e8cc6
commit 474743f2da
21 changed files with 4581 additions and 4506 deletions
+2 -2
View File
@@ -205,9 +205,9 @@ rl_tilde_expand (int ignore, int key)
end = start;
do
end++;
while (whitespace (rl_line_buffer[end]) == 0 && end < rl_end);
while (end < rl_end && whitespace (rl_line_buffer[end]) == 0);
if (whitespace (rl_line_buffer[end]) || end >= rl_end)
if (end >= rl_end || whitespace (rl_line_buffer[end]))
end--;
/* If the first character of the current word is a tilde, perform