summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-05 02:33:02 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-05 02:33:02 +0000
commit1744102fe0f2fe0eb060973bef966c6173a48d70 (patch)
treebb18b113bd473266c11bb540a4cd3847feef3942
parent0245ec12f1f89e338d16d744c0e8c1e33648861a (diff)
downloadruby-1744102fe0f2fe0eb060973bef966c6173a48d70.tar.gz
ruby-1744102fe0f2fe0eb060973bef966c6173a48d70.tar.xz
ruby-1744102fe0f2fe0eb060973bef966c6173a48d70.zip
Fix: raised error on tool/ifchange.
* tool/ifchange: Fix: arguments which begin with minus sign may parsed as options. Because of older systems, don't use -- but use parentheses. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rwxr-xr-xtool/ifchange2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 52c40c5f1..bcd5ed784 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Tue May 5 11:29:07 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * tool/ifchange: Fix: arguments which begin with minus sign may
+ parsed as options. Because of older systems, don't use --
+ but use parentheses.
+
Tue May 5 10:42:28 2009 NARUSE, Yui <naruse@ruby-lang.org>
* ext/json: Update to JSON 1.1.4.
diff --git a/tool/ifchange b/tool/ifchange
index 7038615d4..177ce7340 100755
--- a/tool/ifchange
+++ b/tool/ifchange
@@ -8,7 +8,7 @@ until [ "$0" = 0 ]; do
timestamp=.
;;
--timestamp=*)
- timestamp=`expr "$1" : '[^=]*=\(.*\)'`
+ timestamp=`expr \( "$1" : '[^=]*=\(.*\)' \)`
;;
*)
break