diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-25 02:09:07 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-25 02:09:07 +0000 |
commit | 6487abea6ca358d72dccc4645eab06e878f212df (patch) | |
tree | 0c5703233878c98b593672a85aa9b7af5642140d | |
parent | 1a76bf3911669fea4919867fca6452f6e4b93776 (diff) | |
download | ruby-6487abea6ca358d72dccc4645eab06e878f212df.tar.gz |
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-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.in | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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 be7d4feb45..5fdac50fdc 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'"' |