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

ruby-changes:27657

From: nagachika <ko1@a...>
Date: Mon, 11 Mar 2013 01:16:37 +0900 (JST)
Subject: [ruby-changes:27657] nagachika:r39709 (ruby_2_0_0): merge revision(s) 39506,39514: [Backport #7959]

nagachika	2013-03-11 01:16:27 +0900 (Mon, 11 Mar 2013)

  New Revision: 39709

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

  Log:
    merge revision(s) 39506,39514: [Backport #7959]
    
    * configure.in (unexpand_shvar): get rid of non-portable shell
      behavior on OpenBSD, so no extra quotes.  [Bug #7959]

  Modified directories:
    branches/ruby_2_0_0/
  Modified files:
    branches/ruby_2_0_0/ChangeLog
    branches/ruby_2_0_0/configure.in
    branches/ruby_2_0_0/version.h

Index: ruby_2_0_0/configure.in
===================================================================
--- ruby_2_0_0/configure.in	(revision 39708)
+++ ruby_2_0_0/configure.in	(revision 39709)
@@ -3203,19 +3203,18 @@ shvar_to_cpp() { https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/configure.in#L3203
 }
 
 unexpand_shvar() {
-    local var=$1 val n v expr quote
+    local var=$1 val n v expr
     shift
     test "$#" -eq 0 && return
-    quote=['s/${[^${}"]*}/"&"/g']
     for n do
         eval v='"$'$n'"'
-	v="`echo \"$v\" | sed -e \"$quote\" -e ['s/[][$|.\\?*]/\\\\&/g']`"
+	v="`echo \"$v\" | sed -e ['s/${[^${}"]*}/"&"/g'] -e ['s/[][$|.\\?*]/\\\\&/g']`"
 	if test -n "$v"; then
 	    expr=["${expr};s|"'\("[^$"]*\)'"$v|\\1\${$n}\"|g"]
 	    AS_CASE(["$v"], [*'${'*'}'*], [expr=["$expr;s|$v|\"\${$n}\"|g"]])
 	fi
     done
-    expr=["${quote}${expr};"'s/"\(\${[^${}"]*}\)"/\1/g']
+    expr=['s/${[^${}"]*}/"&"/g;'"${expr};"'s/"\(\${[^${}"]*}\)"/\1/g']
     eval $var='"`echo \"\\\"${'$var'}\\\"\" | sed \"$expr;s/\\\"\\\"//g;s/^\\\"//;s/\\\"\\\$//\"`"'
 }
 
Index: ruby_2_0_0/ChangeLog
===================================================================
--- ruby_2_0_0/ChangeLog	(revision 39708)
+++ ruby_2_0_0/ChangeLog	(revision 39709)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ChangeLog#L1
+Mon Mar 11 01:16:12 2013  Nobuyoshi Nakada  <nobu@r...>
+
+	* configure.in (unexpand_shvar): get rid of non-portable shell
+	  behavior on OpenBSD, so no extra quotes.  [Bug #7959]
+
 Mon Mar 11 01:12:50 2013  Nobuyoshi Nakada  <nobu@r...>
 
 	* parse.y (IS_LABEL_POSSIBLE): allow labels for keyword arguments just
Index: ruby_2_0_0/version.h
===================================================================
--- ruby_2_0_0/version.h	(revision 39708)
+++ ruby_2_0_0/version.h	(revision 39709)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/version.h#L1
 #define RUBY_VERSION "2.0.0"
 #define RUBY_RELEASE_DATE "2013-03-11"
-#define RUBY_PATCHLEVEL 53
+#define RUBY_PATCHLEVEL 54
 
 #define RUBY_RELEASE_YEAR 2013
 #define RUBY_RELEASE_MONTH 3

Property changes on: ruby_2_0_0
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r39506,39514


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

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