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=-4.0 required=3.0 tests=AWL,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham 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 2DCF81F885 for ; Sat, 11 Jan 2020 11:18:27 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 26ED01209A4; Sat, 11 Jan 2020 20:18:13 +0900 (JST) Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id 5DB5B1209A3 for ; Sat, 11 Jan 2020 20:18:11 +0900 (JST) Received: by filterdrecv-p3iad2-57f487d66-4j4mf with SMTP id filterdrecv-p3iad2-57f487d66-4j4mf-19-5E19AEFA-5 2020-01-11 11:18:18.17190831 +0000 UTC m=+2197899.375164123 Received: from herokuapp.com (unknown [54.224.129.129]) by ismtpd0002p1iad1.sendgrid.net (SG) with ESMTP id UxxdnB3_QZaGiwq1U3rUIA for ; Sat, 11 Jan 2020 11:18:18.104 +0000 (UTC) Date: Sat, 11 Jan 2020 11:18:18 +0000 (UTC) From: hsbt@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 72442 X-Redmine-Project: ruby-master X-Redmine-Issue-Id: 8709 X-Redmine-Issue-Author: tommorris 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-SG-EID: =?us-ascii?Q?9+ToIm+BmphpEzrVEr2fqVDpB0VofQNbgfqsVvtPdY3BTaefx2UuL9NSUq=2F8Dd?= =?us-ascii?Q?c9k2z1zJiXWE75LBFpgk+uzQoMl8TT+MtBmR9PX?= =?us-ascii?Q?p65rICQEBqQlmyV2rSWC5DCqaXucZGxwjE0UiNn?= =?us-ascii?Q?yHtqpFaqt0F9Ps=2FxBeA1NVRVGHbtHhBYp8RZdeq?= =?us-ascii?Q?phmg0ET7bfQFbcy+b8JS2rsOu2a+Jm4Ge8mU4q2?= =?us-ascii?Q?z7IVOL55QYq8=2F1A60=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 96779 Subject: [ruby-core:96779] [Ruby master Bug#8709] Dir.glob should return sorted file list 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 #8709 has been updated by hsbt (Hiroshi SHIBATA). Backport deleted (1.9.3: UNKNOWN, 2.0.0: UNKNOWN) Status changed from Open to Rejected Do not update the `status` without a maintainer's decision. ---------------------------------------- Bug #8709: Dir.glob should return sorted file list https://bugs.ruby-lang.org/issues/8709#change-83772 * Author: tommorris (Tom Morris) * Status: Rejected * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 1.9.3p429 (2013-05-15) [x86_64-linux] Brightbox * Backport: ---------------------------------------- On OS X, Dir.glob and Dir[] return an ordered list of files. On Ubuntu Linux, they do not and one must manually sort them. Returning a list of files that isn't in order fails the Principle of Least Astonishment. I attach a unit test to demonstrate ideal behaviour. ---Files-------------------------------- globtest.rb (454 Bytes) -- https://bugs.ruby-lang.org/