fix for heuristic to detect case statements when parsing $() command substitutions to find history expansion; fix for history not being saved if a SIGHUP arrives during $PROMPT_COMMAND execution; workaround for Cygwin bug that results in bash incorrectly calculating the system pipe size

This commit is contained in:
Chet Ramey
2026-03-09 14:54:45 -04:00
parent d0b41c2c5f
commit 1f292e433e
16 changed files with 6183 additions and 366 deletions
+5 -1
View File
@@ -1,6 +1,6 @@
/* psize.c - Find pipe size. */
/* Copyright (C) 1987, 1991, 2022 Free Software Foundation, Inc.
/* Copyright (C) 1987, 1991, 2022, 2026 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
@@ -50,7 +50,11 @@ int nw;
sighandler
sigpipe (int sig)
{
#if defined (__CYGWIN__)
fprintf (stderr, "%d\n", nw - 128);
#else
fprintf (stderr, "%d\n", nw);
#endif
exit (0);
}