ruby-changes:41428
From: nobu <ko1@a...>
Date: Tue, 12 Jan 2016 10:50:40 +0900 (JST)
Subject: [ruby-changes:41428] nobu:r53500 (trunk): escape brackets
nobu 2016-01-12 10:51:01 +0900 (Tue, 12 Jan 2016) New Revision: 53500 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53500 Log: escape brackets * configure.in: escape char class brackets in regexp. Modified files: trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 53499) +++ configure.in (revision 53500) @@ -224,8 +224,8 @@ fi https://github.com/ruby/ruby/blob/trunk/configure.in#L224 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` -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/