[ruby-core:76724] [Ruby trunk Bug#12634][Rejected] Ruby converts '*' on command line to a file name
From:
usa@...
Date:
2016-08-04 08:02:35 UTC
List:
ruby-core #76724
Issue #12634 has been updated by Usaku NAKAMURA. Status changed from Closed to Rejected Anyway, although on Windows, use `'*'` to prevent globbing. ---------------------------------------- Bug #12634: Ruby converts '*' on command line to a file name https://bugs.ruby-lang.org/issues/12634#change-59947 * Author: Krzysztof Wicher * Status: Rejected * 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:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>