From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 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)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 9C8271F50E for ; Fri, 14 Feb 2025 05:44:33 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=q3JF+438; 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=B71to1gt; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1739511871; bh=jirrKexDCJ9yawrY2Ves49eGWvrbLKQJZxPNNP82QTE=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=q3JF+438g2rZ3CrHCjbPO1X7ptUfojyKCq39Py/+UlfbjWPT10kU0pwwznhr4f7AU Rdjq18BIbB3iUpW6O81VL/pqu1OY3jEGjcwERMCTidqIzc0CkoAo/BxgcSsnfMco+K xYuNGC7SIf6ImHMqni9159o3QvzzEBrb8PwOOgyo= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id A858A46B57 for ; Fri, 14 Feb 2025 05:44:31 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=B71to1gt; dkim-atps=neutral Received: from s.wrqvtzvf.outbound-mail.sendgrid.net (s.wrqvtzvf.outbound-mail.sendgrid.net [149.72.126.143]) by nue.mailmanlists.eu (Postfix) with ESMTPS id ED12D46B26 for ; Fri, 14 Feb 2025 05:44:26 +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:content-type:from:subject:to; s=s1; bh=dbyP9rGJrzJI+ATL172N0y7zDcAoUZUtF27mGsnSL4Q=; b=B71to1gtOtg/LWIHZz9PacHuDTjh9Y6cAW5P61gIjC8GoUxEWhfL5OVszFLrb2Doie90 YJ6jCOu5iHXTLa/yvD/UE2HSXuP4LHgOkw4ZDooXxd3hDurvchdew4ot9d5UotosyaF42N 6WI/vEfeZXKmnUK5ibwODw52qn3gqy8IP30aTx4ETn/M92ork38R/QhDiIDH9Lfcm5BQ60 QlcsOQlD6Ef5BAJK7iFU8rI8jDe+JSKV/lsFbOYfMeXU/iNwD1KJ5p/XU8i2V/kHTHFGUT l7pALx5iIFhgmlfcQCSx8LwYGmqnVCR2YqOrkfLagZ0AcCVMVKbltYCd5O1Rmw/A== Received: by recvd-69cbc48b94-js4ft with SMTP id recvd-69cbc48b94-js4ft-1-67AED839-15 2025-02-14 05:44:25.964695707 +0000 UTC m=+7892544.435708872 Received: from herokuapp.com (unknown) by geopod-ismtpd-29 (SG) with ESMTP id EK-om_rZSm-_AQ09pwr2IA for ; Fri, 14 Feb 2025 05:44:25.918 +0000 (UTC) Date: Fri, 14 Feb 2025 05:44:26 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20982 X-Redmine-Issue-Author: herwin X-Redmine-Issue-Priority: Normal X-Redmine-Sender: k0kubun 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: 97758 X-SG-EID: =?us-ascii?Q?u001=2EsWSpkbcla4bB6tSlkOwdN01=2FLLwMflJlYDs0Ak3Gg6dwg4YUERnU2ZQsI?= =?us-ascii?Q?KPesnHmuO3R4nEnLV41FQje7rMJs=2FlByQKQxPtJ?= =?us-ascii?Q?4AIt7Pq58gDYPtPMSuQ1qi7qCJ12Nv7VcXatvs5?= =?us-ascii?Q?62vKA7n6Q0Ko7iuPmJOHVPfmdiTYsGdIChKqfHB?= =?us-ascii?Q?86u+lzWTYJ7g3yOUzAAqhchhvPcBcGcqrCps9fD?= =?us-ascii?Q?z6l2K9hgOO2t923gdHU70udEZI6wKZDuqmtxO8U?= =?us-ascii?Q?XtEzEicSytFBRZ8GlJnsE2d09w=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: 4HCKJYB4MYRHEXS6ADOHAWKKD4XIDGA7 X-Message-ID-Hash: 4HCKJYB4MYRHEXS6ADOHAWKKD4XIDGA7 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.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:121038] [Ruby master Bug#20982] Inconsistency between Hash#inspect and ENV.inspect in Ruby 3.4 List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "k0kubun (Takashi Kokubun) via ruby-core" Cc: "k0kubun (Takashi Kokubun)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20982 has been updated by k0kubun (Takashi Kokubun). Backport changed from 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED, 3.4: REQUIRED to 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED, 3.4: DONE ruby_3_4 commit:24f48c83e7e851a6ca712fc7b498634da9a24789. ---------------------------------------- Bug #20982: Inconsistency between Hash#inspect and ENV.inspect in Ruby 3.4 https://bugs.ruby-lang.org/issues/20982#change-111946 * Author: herwin (Herwin W) * Status: Closed * Backport: 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED, 3.4: DONE ---------------------------------------- Ruby 3.4 changed the stringified output of Hash to add whitespace to the hashrockets ``` ruby -e 'p({"a"=>"b"})' {"a" => "b"} ``` The output of `ENV.inspect` is very similar to `Hash#inspect`, but does not include the whitespace ``` ruby -e 'p ENV' {"SHELL"=>"/bin/bash", [...] } ``` Adding the extra whitespace around the hashrockets would improve the readability, and make things more consistent. -- 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/lists/ruby-core.ml.ruby-lang.org/