From: nobu@... Date: 2016-04-11T04:40:58+00:00 Subject: [ruby-core:74872] [Ruby trunk Bug#12231][Rejected] Kernel#system should not expand shell variables when given multiples arguments, but on Windows it does Issue #12231 has been updated by Nobuyoshi Nakada. Status changed from Open to Rejected It's a specification. ---------------------------------------- Bug #12231: Kernel#system should not expand shell variables when given multiples arguments, but on Windows it does https://bugs.ruby-lang.org/issues/12231#change-58001 * Author: Vais Salikhov * Status: Rejected * Priority: Normal * Assignee: * ruby -v: ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-mingw32] * Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN ---------------------------------------- ``` C:\Users\Administrator>C:\Ruby\ruby-2.2.4-i386-mingw32\bin\ruby.exe -ve "ENV['TEST_SH_EXPANSION'] = 'foo'; p system('echo', '%TEST_SH_EXPANSION%')" ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-mingw32] foo true ``` -- https://bugs.ruby-lang.org/ Unsubscribe: