From 242b1d8f4cd46a580af3144873df845848463807 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 12 Jan 2016 01:51:01 +0000 Subject: [PATCH] escape brackets * configure.in: escape char class brackets in regexp. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- configure.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index f3444201e6..25585f6852 100644 --- a/configure.in +++ b/configure.in @@ -224,8 +224,8 @@ fi GNU_LD=$rb_cv_prog_gnu_ld AC_SUBST(GNU_LD)]) -eval `sed -n 's/^#define RUBY_API_VERSION_\([A-Z][A-Z_0-9]*\) \([0-9][0-9]*\)/API_\1=\2/p' $srcdir/include/ruby/version.h` -RUBY_PROGRAM_VERSION=`sed -n 's/^#define RUBY_VERSION "\(.*\)"/\1/p' $srcdir/version.h` +eval `sed -n ['s/^@%:@define RUBY_API_VERSION_\([A-Z][A-Z_0-9]*\) \([0-9][0-9]*\)/API_\1=\2/p'] $srcdir/include/ruby/version.h` +RUBY_PROGRAM_VERSION=`sed -n 's/^@%:@define RUBY_VERSION "\(.*\)"/\1/p' $srcdir/version.h` MAJOR=`echo $RUBY_PROGRAM_VERSION | cut -d. -f1` MINOR=`echo $RUBY_PROGRAM_VERSION | cut -d. -f2` TEENY=`echo $RUBY_PROGRAM_VERSION | cut -d. -f3`