summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-20 14:40:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-20 14:40:17 +0000
commit2bb1e93d92b9524dae4f6aedb2a7b4f8c0e513f7 (patch)
tree88d76322b96976bd1b1f8706ae58233ea64b03a9
parent96003bc9ac12f0ac7e622486bc3c3b4ae3608655 (diff)
test -t
* aclocal.m4, tool/ifchange: make the fd explict. [ruby-dev:49311] [Bug #11608] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--aclocal.m42
-rwxr-xr-xtool/ifchange2
2 files changed, 2 insertions, 2 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index c1bdcbc..faf6beb 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -2,7 +2,7 @@
AC_DEFUN([_COLORIZE_RESULT_PREPARE], [
msg_checking= msg_result_yes= msg_result_no= msg_result_other= msg_reset=
- AS_IF([test -t], [
+ AS_IF([test -t 1], [
msg_begin="`tput smso 2>/dev/null`"
AS_CASE(["$msg_begin"], ['@<:@'*m],
[msg_begin="`echo "$msg_begin" | sed ['s/[0-9]*m$//']`"
diff --git a/tool/ifchange b/tool/ifchange
index 6a1923c..837dd4d 100755
--- a/tool/ifchange
+++ b/tool/ifchange
@@ -38,7 +38,7 @@ if [ "$temp" = - ]; then
fi
msg_begin= msg_unchanged= msg_updated= msg_reset=
-if [ -t ]; then
+if [ -t 1 ]; then
msg_begin="`tput smso 2>/dev/null`"
case "$msg_begin" in
""*m)