summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-25 02:09:07 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-25 02:09:07 +0000
commit6487abea6ca358d72dccc4645eab06e878f212df (patch)
tree0c5703233878c98b593672a85aa9b7af5642140d
parent1a76bf3911669fea4919867fca6452f6e4b93776 (diff)
Fix ksh/bash-ism.
* configure.in (unexpand_shvar): Use the numeric comparison operator instead of '==' which is a ksh extention. [Bug #7941] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--configure.in2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index dea2653..0f04808 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Feb 25 11:03:38 2013 Akinori MUSHA <knu@iDaemons.org>
+
+ * configure.in (unexpand_shvar): Use the numeric comparison
+ operator instead of '==' which is a ksh extention. [Bug #7941]
+
Mon Feb 25 02:37:56 2013 Tanaka Akira <akr@fsij.org>
* ext/socket: define and use union_sockaddr instead of struct
diff --git a/configure.in b/configure.in
index be7d4fe..5fdac50 100644
--- a/configure.in
+++ b/configure.in
@@ -3282,7 +3282,7 @@ shvar_to_cpp() {
unexpand_shvar() {
local var=$1 val n v expr quote
shift
- test "$#" == 0 && return
+ test "$#" -eq 0 && return
quote=['s/${[^${}"]*}/"&"/g']
for n do
eval v='"$'$n'"'