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/