From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS24940 94.130.0.0/16 X-Spam-Status: No, score=-3.0 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_HI, SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (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) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 8CA381F4C1 for ; Tue, 29 Nov 2022 01:04:18 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.b="reg2LfbV"; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 304727E78B; Tue, 29 Nov 2022 01:04:10 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=reg2LfbV; dkim-atps=neutral Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 280E67E747 for ; Tue, 29 Nov 2022 01:04:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc; s=s1; bh=z6tdMvcF+svMCcMqu08roAIhq6amjp2In+rvp8WVoSE=; b=reg2LfbVOL7KKdV8QCLcIqhblC8m1ucW1dpBNVgMPxGHlGzf0dblPfy5LIZDuC5omuQ3 +7nbINbWZ5hKMTVOu4sVH4MVZzgUJaDVsdh8Q7mwGEBKseajsefyk9RuwV8oX3SrYGQj7Q yNq7KEarkrRcKclB0IDUQJwLv4lpxpe8hsN4Di05JKLWL+mkK8r2PcmVNWzYbI/0temz7B g6n5iDmIvpD0cZjlNFWAz/b3hrpAvbno3KaNvU7yXw9OHX28I530oOH0X3lq7yAL9jL0cE U/LQm0bnb1S3x1D9xgRZdEmcn33P6XQWB2PzHKjv+oUjqFrya0sXpZKPZLUO8JhQ== Received: by filterdrecv-6f5868ff54-hh46f with SMTP id filterdrecv-6f5868ff54-hh46f-1-63855A84-8A 2022-11-29 01:04:04.795936227 +0000 UTC m=+957432.641166831 Received: from herokuapp.com (unknown) by geopod-ismtpd-4-4 (SG) with ESMTP id nWa3bKtTQzmhaGNimPSDaA for ; Tue, 29 Nov 2022 01:04:04.650 +0000 (UTC) Date: Tue, 29 Nov 2022 01:04:04 +0000 (UTC) From: "hsbt (Hiroshi SHIBATA)" Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 18657 X-Redmine-Issue-Author: pjones X-Redmine-Sender: hsbt X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 87390 X-SG-EID: =?us-ascii?Q?BAqCsB0mvMCnHXWkBD9MTHUyV8AfYOY3mM6FlznSxbO5US8=2FSBDCMBBYmmIAuU?= =?us-ascii?Q?TeaKG5YiQzAGgZc0jHcwXZVFMafO4FzN+zEifU7?= =?us-ascii?Q?=2FXM1+dHFBrMmcsBCywFi8aM5CbAPI77f8op=2FSUG?= =?us-ascii?Q?ytvSCieDJ6k1lQ3WygtavFFaXz1hv8pH9J9sAur?= =?us-ascii?Q?b7xAZBoKlgk9expI7Tlqn6rQENhZ+osQDolEW28?= =?us-ascii?Q?lxc7jiGauPVUBWwaVKnF6vEp4PoEl3EH6Zqd1NF?= =?us-ascii?Q?1GBeOepCaf57mccR6nDXg=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== Message-ID-Hash: VMNN6P5BB5C6VBF32CPWCAFADPIK3BMY X-Message-ID-Hash: VMNN6P5BB5C6VBF32CPWCAFADPIK3BMY X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:111042] [Ruby master Bug#18657] IRB raises exception when stdout is a pipe List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #18657 has been updated by hsbt (Hiroshi SHIBATA). Status changed from Open to Closed This patch has been merged at https://github.com/ruby/irb/pull/353 ---------------------------------------- Bug #18657: IRB raises exception when stdout is a pipe https://bugs.ruby-lang.org/issues/18657#change-100295 * Author: pjones (Peter Jones) * Status: Closed * Priority: Normal * ruby -v: ruby 3.2.0dev (2022-03-24T16:14:55Z master 33b13bd9f1) [x86_64-linux] * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- When piping stdout to another process IRB fails: ``` lib/ruby/3.0.0/irb/input-method.rb:42:in `winsize': Inappropriate ioctl for device (Errno::ENOTTY) ``` For example: ``` echo n=1 | irb | cat ``` This bug was introduced in e468d9f49ca34f713c030c623f655a40370e186d and triggered by 8f9b1902f48b413bd161666630c878ad58418c04 and 555ea8334451c5ccd881e68b8b7ddc15745e66e3. The attached patch fixes the bug and includes a test to demonstrate the issue. ---Files-------------------------------- ruby-irb.patch (1.26 KB) -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/