Re: BUG: pty-related regression in cygwin 3.6.10-1

Takashi Yano via Cygwin <[email protected]> Mon, 3 Aug 2026 11:53:47 +0900
Newsgroups gmane.os.cygwin
Message-ID <[email protected]>
Hi Steven,

Thanks for the report.

On Sat, 1 Aug 2026 22:16:01 -0400
Steven Doerfler wrote:
> The test program attached runs its provided command line using a pty. 
> Starting with cygwin 3.6.10-1, if the child program it runs prompts for 
> input, providing input will make both programs exit.
> 
> To reproduce, compile the program included below with "gcc -o ptytest 
> ptytest.c".
> Then from a Windows cmd.exe command prompt, type "ptytest bash".
> At the bash prompt, press Enter.
> 
> Expected behavior: Bash displays another prompt and waits for a command.
> 
> Observed behavior (after "cygwin" package has been updated from 3.6.9-1 
> to 3.6.10-1): Bash and ptytest exit and a cmd.exe prompt appears.
> 
> The program appears to behave as expected with Cygwin 3.7.0-0.520, but 
> not in the later 3.7.0-0.545 nor 3.7.0-0.569.

Actually, this is not a bug in pty, but in console.
I submitted a patch addressed to this issue to cygwin-patches mailing
list. Please wait a while.

-- 
Takashi Yano <[email protected]>

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple