Project

General

Profile

This project is closed and read-only.

Actions

Bug #2331

closed

Kernel#system の第一引数が書き換えられる

Bug #2331: Kernel#system の第一引数が書き換えられる

Added by ykc@venus.dti.ne.jp (Kimura Yoshihiro) almost 17 years ago. Updated over 15 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 1.8.7 (2009-06-12 patchlevel 174) [i386-mingw32] および [i386-mswin32]

Description

=begin
mingw/mswin 環境で、system に渡したプログラム文字列が
/ から \ に書き換えられます。

PROG = 'c:/ruby/bin/ruby.exe'.freeze # パス名は任意
system(PROG, '-v')
p PROG #=> "c:\ruby\bin\ruby.exe"

1.9では問題ないようです。
=end

Actions

Also available in: PDF Atom