ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:56274] [ruby-trunk - Bug #8709][Open] Dir.glob should return sorted file list
@ 2013-07-30 16:24 tommorris (Tom Morris)
  2013-07-30 17:49 ` [ruby-core:56275] [ruby-trunk - Bug #8709][Rejected] " charliesome (Charlie Somerville)
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: tommorris (Tom Morris) @ 2013-07-30 16:24 UTC (permalink / raw)
  To: ruby-core


Issue #8709 has been reported by tommorris (Tom Morris).

----------------------------------------
Bug #8709: Dir.glob should return sorted file list
https://bugs.ruby-lang.org/issues/8709

Author: tommorris (Tom Morris)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.3p429 (2013-05-15) [x86_64-linux] Brightbox
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


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.


-- 
http://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2020-01-16 15:12 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-30 16:24 [ruby-core:56274] [ruby-trunk - Bug #8709][Open] Dir.glob should return sorted file list tommorris (Tom Morris)
2013-07-30 17:49 ` [ruby-core:56275] [ruby-trunk - Bug #8709][Rejected] " charliesome (Charlie Somerville)
2020-01-11  6:28 ` [ruby-core:96776] [Ruby master Bug#8709] " rubybugsbmw
2020-01-11 11:18 ` [ruby-core:96779] " hsbt
2020-01-11 11:27 ` [ruby-core:96780] [Ruby master Feature#8709] " eregontp
2020-01-11 11:32 ` [ruby-core:96781] " hsbt
2020-01-11 11:33 ` [ruby-core:96782] " eregontp
2020-01-11 11:35 ` [ruby-core:96785] " eregontp
2020-01-11 20:48 ` [ruby-core:96792] " rubybugsbmw
2020-01-13  9:28 ` [ruby-core:96823] " jean.boussier
2020-01-13 10:04 ` [ruby-core:96824] " deivid.rodriguez
2020-01-13 18:49 ` [ruby-core:96828] " john
2020-01-14  6:27 ` [ruby-core:96836] " naruse
2020-01-14  7:27 ` [ruby-core:96840] " mame
2020-01-14 10:40 ` [ruby-core:96850] " eregontp
2020-01-14 10:44 ` [ruby-core:96851] " eregontp
2020-01-16  5:22 ` [ruby-core:96882] " nobu
2020-01-16  6:03 ` [ruby-core:96888] " matz
2020-01-16 15:12 ` [ruby-core:96911] " daniel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).