[前][次][番号順一覧][スレッド一覧]

ruby-changes:40138

From: nobu <ko1@a...>
Date: Thu, 22 Oct 2015 22:53:19 +0900 (JST)
Subject: [ruby-changes:40138] nobu:r52219 (trunk): ifchange: ignore error

nobu	2015-10-22 22:53:01 +0900 (Thu, 22 Oct 2015)

  New Revision: 52219

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52219

  Log:
    ifchange: ignore error
    
    * tool/ifchange: do not exit by -e even if tput failed.
      [ruby-core:71143] [Bug #11611]

  Modified files:
    trunk/tool/ifchange
Index: tool/ifchange
===================================================================
--- tool/ifchange	(revision 52218)
+++ tool/ifchange	(revision 52219)
@@ -39,7 +39,7 @@ fi https://github.com/ruby/ruby/blob/trunk/tool/ifchange#L39
 
 msg_begin= msg_unchanged= msg_updated= msg_reset=
 if [ -t 1 ]; then
-    msg_begin="`tput smso 2>/dev/null`"
+    msg_begin="`tput smso 2>/dev/null`" || :
     case "$msg_begin" in
 	""*m)
 	    msg_begin="`echo "$msg_begin" | sed 's/[0-9]*m$//'`"

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]