[前][次][番号順一覧][スレッド一覧]

ruby-changes:37208

From: nobu <ko1@a...>
Date: Sat, 17 Jan 2015 09:05:19 +0900 (JST)
Subject: [ruby-changes:37208] nobu:r49289 (trunk): make-snapshot: check the first word of commands

nobu	2015-01-17 09:05:09 +0900 (Sat, 17 Jan 2015)

  New Revision: 49289

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49289

  Log:
    make-snapshot: check the first word of commands
    
    * tool/make-snapshot: commands stored in environment variables may
      contain options, so check only the first word.

  Modified files:
    trunk/tool/make-snapshot
Index: tool/make-snapshot
===================================================================
--- tool/make-snapshot	(revision 49288)
+++ tool/make-snapshot	(revision 49289)
@@ -5,6 +5,7 @@ require 'digest/md5' https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L5
 require 'digest/sha1'
 require 'digest/sha2'
 require 'fileutils'
+require 'shellwords'
 require 'tmpdir'
 require File.expand_path("../vcs", __FILE__)
 STDOUT.sync = true
@@ -91,7 +92,7 @@ $digests ||= DIGESTS https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L92
 $patch_file &&= File.expand_path($patch_file)
 path = ENV["PATH"].split(File::PATH_SEPARATOR)
 %w[YACC BASERUBY RUBY MV MINIRUBY].each do |var|
-  cmd = ENV[var]
+  cmd, = ENV[var].shellsplit
   unless path.any? {|dir|
       file = File.expand_path(cmd, dir)
       File.file?(file) and File.executable?(file)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]