Project

General

Profile

Actions

Feature #5422

closed

File.fnmatch != Dir.glob # {no,sets}

Added by sunaku (Suraj Kurapati) over 12 years ago. Updated over 11 years ago.

Status:
Closed
Assignee:
-
Target version:
[ruby-core:40037]

Description

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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0