[ruby-core:76601] [Ruby trunk Bug#12634] Ruby converts '*' on command line to a file name

From: mordotymoja@...
Date: 2016-07-28 19:37:47 UTC
List: ruby-core #76601
Issue #12634 has been reported by Krzysztof Wicher.

----------------------------------------
Bug #12634: Ruby converts '*' on command line to a file name
https://bugs.ruby-lang.org/issues/12634

* Author: Krzysztof Wicher
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.3.1p112 (2016-04-26 revision 54768) [x64-mingw32]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
Repro:
- ruby script.rb *
- script.rb:
puts ARGV[0]

output:
<random file name>

expected output:
*

OS: Windows 10


This is annoying when passing glob as an arg. Also happens when passing anything starting with `*`



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

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next