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) almost 6 years ago. Updated almost 6 years ago.

Status:
Rejected
Priority:
Normal
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

Updated by nobu (Nobuyoshi Nakada) almost 6 years ago

  • Status changed from Open to Rejected

It's a specification.

Actions

Also available in: Atom PDF