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
This commit is contained in:
knu 2013-02-25 02:09:07 +00:00
parent 1a76bf3911
commit 6487abea6c
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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'"'