From: Thomas Sawyer Date: 2012-03-18T11:06:56+09:00 Subject: [ruby-core:43381] [ruby-trunk - Feature #5422] File.fnmatch != Dir.glob # {no,sets} Issue #5422 has been updated by Thomas Sawyer. Works for me if it works for the API. ---------------------------------------- Feature #5422: File.fnmatch != Dir.glob # {no,sets} https://bugs.ruby-lang.org/issues/5422#change-24685 Author: Suraj Kurapati Status: Open Priority: Normal Assignee: Category: core Target version: 3.0 Hello, The File.fnmatch methods do not support Dir.glob's set notation: >> Dir.glob '{.g,t}*' => [".gem", "test"] >> File.fnmatch? '{.g,t}*', 'test' => false >> File.fnmatch? '{.g,t}*', '.gem' => false Please add set notation to fnmatch() and make it equal to glob(). Thanks for your consideration. -- http://bugs.ruby-lang.org/