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: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-2.2 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_YAHOO_RCVD,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 8AEA41F463 for ; Tue, 24 Sep 2019 18:31:39 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 34422120A11; Wed, 25 Sep 2019 03:31:29 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id 61B451208FD for ; Wed, 25 Sep 2019 03:31:23 +0900 (JST) Received: by filter0144p3mdw1.sendgrid.net with SMTP id filter0144p3mdw1-23168-5D8A60FF-7 2019-09-24 18:31:27.120988995 +0000 UTC m=+79466.461371541 Received: from herokuapp.com (unknown [54.157.43.252]) by ismtpd0005p1iad1.sendgrid.net (SG) with ESMTP id jmRHrmzrTsW38JYz52XQAg for ; Tue, 24 Sep 2019 18:31:27.011 +0000 (UTC) Date: Tue, 24 Sep 2019 18:31:27 +0000 (UTC) From: burdettelamar@yahoo.com Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 70618 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 16173 X-Redmine-Issue-Author: burdettelamar@yahoo.com X-Redmine-Sender: burdettelamar@yahoo.com 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-SG-EID: =?us-ascii?Q?M0WX68AHQr=2FVSnvsB1Qo5xEo9+xKABJC=2FqJZ83MVt=2FoK4B4Sdgh8LEJKVpCgTe?= =?us-ascii?Q?fJ1SV7Rvoo1qp1XZ84acKlo9cFIcjKCaUeVWoxg?= =?us-ascii?Q?0+uKQXqj0zKK=2FCa5+iBguf6rkP=2FP30he7848W7P?= =?us-ascii?Q?6Txf76UXhsMClnQ3AjzD0aFlMrLysN+Ti3+Pf9G?= =?us-ascii?Q?7O+NaenhZeCmNSmiEWeJOHO9vBPKyXIGnLQ=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 95063 Subject: [ruby-core:95063] [Ruby master Bug#16173] ENV.delete returns nil when name does not exist and block given X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #16173 has been updated by burdettelamar@yahoo.com (Burdette Lamar). I, being a member only of The Outer Party, can't merge anything here. I'm agnostic on whether the change should be to the documentation or to the code. My part was just to note the discrepancy. Can someone in The Inner Party take action? Thanks, Burdette ---------------------------------------- Bug #16173: ENV.delete returns nil when name does not exist and block given https://bugs.ruby-lang.org/issues/16173#change-81696 * Author: burdettelamar@yahoo.com (Burdette Lamar) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.6.4p104 (2019-08-28 revision 67798) [x64-mingw32] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- Attached diff.txt: * ENV.delete for nonexistent name and block given: * Test enhanced to verify return value is nil. * Documentation corrected to say that return value is nil, not value. ---Files-------------------------------- diff.txt (2.22 KB) -- https://bugs.ruby-lang.org/