sys/termios.h defines struct winsize after it is referenced in function signatures

2025-07-17 Thread Zachary Santer
Was "MacOS Homebrew bash '5.3.0(1)-release' breaks 'wait' (?)" on bug-bash@gnu.org. On Thu, Jul 17, 2025 at 12:05 PM Chet Ramey wrote: > > On 7/17/25 8:51 AM, Sam James wrote: > > Zachary Santer writes: > > > >> I've applied your patch, but gcc 15.1.0 has decided that a 'struct > >> winsize *' n

Re: Bash 5.3-devel getopts reads 1 byte past the end of a buffer when called twice

2025-07-17 Thread Chet Ramey
On 7/17/25 12:52 AM, Nathan Mills wrote: Bash Version: 5.3-devel Patch Level: 0 Release Status: devel-a23c863e Clang: ``` clang version 19.1.7 Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /nix/store/x6rsdc4s0f1j9bn1cx2h1l5fj8765ykw-clang-19.1.7/bin ``` NixOS: ``` nixos-ve

Re: MacOS Homebrew bash '5.3.0(1)-release' breaks 'wait' (?)

2025-07-17 Thread Chet Ramey
On 7/17/25 8:10 AM, Zachary Santer wrote: "JWAIT_WAITING"? All the flags that affect behavior when waiting for jobs start with JWAIT_. The `WAITING' part means we are looking for jobs that are terminated or changed state that have the J_WAITING flag set in their job struct, indicating that we

Re: MacOS Homebrew bash '5.3.0(1)-release' breaks 'wait' (?)

2025-07-17 Thread Chet Ramey
On 7/17/25 8:10 AM, Zachary Santer wrote: I've applied your patch, but gcc 15.1.0 has decided that a 'struct winsize *' not being a 'struct winsize *' is an error now. Does cygwin have tcgetwinsize(3), and where does it declare `struct winsize'? You're not the first person to report something l

Re: MacOS Homebrew bash '5.3.0(1)-release' breaks 'wait' (?)

2025-07-17 Thread Chet Ramey
On 7/17/25 8:51 AM, Sam James wrote: Zachary Santer writes: I've applied your patch, but gcc 15.1.0 has decided that a 'struct winsize *' not being a 'struct winsize *' is an error now. Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: cygwin Compiler: gc

Re: MacOS Homebrew bash '5.3.0(1)-release' breaks 'wait' (?)

2025-07-17 Thread Sam James
Zachary Santer writes: > I've applied your patch, but gcc 15.1.0 has decided that a 'struct > winsize *' not being a 'struct winsize *' is an error now. > > Configuration Information [Automatically generated, do not change]: > Machine: x86_64 > OS: cygwin > Compiler: gcc > Compilation CFLAGS: -Wn

Re: MacOS Homebrew bash '5.3.0(1)-release' breaks 'wait' (?)

2025-07-17 Thread Zachary Santer
I've applied your patch, but gcc 15.1.0 has decided that a 'struct winsize *' not being a 'struct winsize *' is an error now. Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: cygwin Compiler: gcc Compilation CFLAGS: -Wno-error=incompatible-pointer-types uname