the `history' builtin prints error messages for certain read and write errors; implementation of new form of nofork command substitution that does not remove trailing newlines

This commit is contained in:
Chet Ramey
2026-01-18 17:48:33 -05:00
parent a6421d8419
commit 8ea1a222df
25 changed files with 2841 additions and 2399 deletions
+2 -1
View File
@@ -827,7 +827,8 @@ slow_write_error:
/* Workhorse function for writing history. Writes the last NELEMENT entries
from the history list to FILENAME. OVERWRITE is non-zero if you
wish to replace FILENAME with the entries. */
wish to replace FILENAME with the entries. Returns 0 if successful, or
errno if not. */
static int
history_do_write (const char *filename, int nelements, int overwrite)
{