Project

General

Profile

Actions

Bug #11097

closed

File names with wildcards do not expand if a path is used

Added by jcostantino (John Costantino) almost 9 years ago. Updated over 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.2p95 (2015-04-13 revision 50295) [x64-mingw32]
[ruby-core:68985]

Description

File name expansion using wildcards does not work when a path is included. This fails in 2.2.2, but works in 2.1.6.

This example has no path and it works:

C:\Test>C:\Ruby22-x64\bin\ruby -e "puts ARGV.join(' -- ')" A*.txt
A1.txt -- A2.txt -- A3.txt -- A4.txt

This example specifies a path and does not work:

C:\Test>C:\Ruby22-x64\bin\ruby -e "puts ARGV.join(' -- ')" C:\Test\A*.txt

(The blank line is intentional. That is what is returned.)

Updated by nobu (Nobuyoshi Nakada) almost 9 years ago

  • Description updated (diff)
  • Status changed from Open to Feedback

Is it same as #11089?

Actions #2

Updated by jeremyevans0 (Jeremy Evans) over 4 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0