Project

General

Profile

Actions

Bug #12231

closed

Kernel#system should not expand shell variables when given multiples arguments, but on Windows it does

Added by vais (Vais Salikhov) over 8 years ago. Updated over 8 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-mingw32]
[ruby-core:74725]

Description

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
Actions

Also available in: Atom PDF

Like0
Like0