From nobody Thu Feb 2 19:08:06 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P77bV52rzz3kTBT for ; Thu, 2 Feb 2023 19:08:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P77bV3R1gz487R for ; Thu, 2 Feb 2023 19:08:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675364886; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3JRXCHOER4fmjrdLOcDtC1o4fzCpf8j34zXDwLCycJo=; b=hT/MpDZt8mL08dC4vFZ8SjryE4uiuWwpsb0JDWiZfOOSctYhfWQRfVn14lOgOMso/jdmOa fqSUgwyez0oce13d6nn9JYEL5ZgmjGSfZWpy4Xy/PwWnHCjm3L55Uc5wOOqG0flc/91PYM WssapHwLXVki52Ad5nfpNKNMS4b6YH4phOTvVRVeiZ7wO2zwoxvWlu0xaxeXN/l4ebtKkv YrJKwljVsoLnwlUECwScQ98y43w4WW3qQPEu7QinP3GpFBL3i5+MconR3qSu6etqNvP5Q0 qoHgYjr/Kiaent0Ld/HxBayEVTaHP+uTX7xzec5p8Hf7lhlKJC32plUPotFcCQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675364886; a=rsa-sha256; cv=none; b=DkQ7GhaqS7YE42AoR74SBsTpFzJ0ykgISHrzhy8goe9a5OnymDeDttuW49tODDG8cnTYoH n9fJWv16np7bwT1VTP1jAz2c99DfKTVm5lEFFhdEVI2IZQN6cPB9sgOcu7AerdMyOnB+j0 jZxPPFckHxaJKJV30p35vS898YWqWn3UiODUBahkN4EKMk/+RaREH/4sGhSVIM1877Q6fH m8IF1R1mhOYB8daUaw6+0SS+sVaoZXKdLWJfcvhd5hvmIE3Erof495ShCf/kTTauGxoP4e 1qW68nqaRjqqjfakQXA2c3ADjKGcpwTcjWyVPoFQeGUR2GnOU88/0DJta9HeEw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P77bV2LvSz15k3 for ; Thu, 2 Feb 2023 19:08:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 312J86Nh085605 for ; Thu, 2 Feb 2023 19:08:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 312J863O085604 for ports-bugs@FreeBSD.org; Thu, 2 Feb 2023 19:08:06 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 269292] shells/zsh fails to reset tty state on TMOUT Date: Thu, 02 Feb 2023 19:08:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: fbsd@opal.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bapt@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269292 Bug ID: 269292 Summary: shells/zsh fails to reset tty state on TMOUT Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: bapt@FreeBSD.org Reporter: fbsd@opal.com Flags: maintainer-feedback?(bapt@FreeBSD.org) Assignee: bapt@FreeBSD.org Created attachment 239865 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D239865&action= =3Dedit patch to make zsh reset tty modes on TMOUT shells/zsh fails to reset the tty state if it exits due to TMOUT expiration. Repeat by: $ zsh $ stty -a speed 9600 baud; 60 rows; 119 columns; lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo -extproc iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk brkint -inpck -ignpar -parmrk oflags: opost onlcr -ocrnl tab0 -onocr -onlret cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf rtsdtr cchars: discard =3D ^O; dsusp =3D ^Y; eof =3D ^D; eol =3D ; eol2 =3D ; erase =3D ^?; erase2 =3D ^H; intr =3D ^C; kill = =3D ^U; lnext =3D ^V; min =3D 1; quit =3D ^\; reprint =3D ^R; start =3D ^Q; status =3D ^T; stop =3D ^S; susp =3D ^Z; time =3D 0; werase =3D ^W; $ TMOUT=3D2 $ .. wait for timeout.. zsh: timeout $ stty -a speed 9600 baud; 60 rows; 119 columns; lflags: icanon isig iexten echo echoe -echok echoke -echonl echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin -nokerninfo -extproc iflags: -istrip icrnl inlcr -igncr ixon -ixoff ixany imaxbel -ignbrk brkint -inpck -ignpar -parmrk oflags: opost onlcr -ocrnl tab0 -onocr -onlret cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf rtsdtr cchars: discard =3D ; dsusp =3D ; eof =3D ^D; eol =3D ; eol2 =3D ; erase =3D ^?; erase2 =3D ^H; intr =3D ^C; kill = =3D ^U; lnext =3D ; min =3D 1; quit =3D ; reprint =3D ^R; start =3D ^Q; status =3D ^T; stop =3D ^S; susp =3D ; time = =3D 0; werase =3D ^W; Observe that lots of chars are now and iflag inlcr is now set when = it wasn't before. I am attaching a simple patch to fix this. This should probably be sent upstream too. --=20 You are receiving this mail because: You are the assignee for the bug.=