>From 657226da84d62d1f8a111f946bd54f0cff8f7c01 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Sat, 13 Feb 2016 21:12:04 -0800
Subject: [PROPOSED PATCH] tzselect.ksh: suppress trailing chatter if a tty

Problem reported by J William Piggott in:
http://mm.icann.org/pipermail/tz/2016-February/023133.html
* tzselect.ksh: Output the "You can make this change permanent"
reminder only if the output is a terminal.
---
 tzselect.ksh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tzselect.ksh b/tzselect.ksh
index 3659e6e..ba763e7 100644
--- a/tzselect.ksh
+++ b/tzselect.ksh
@@ -548,7 +548,7 @@ case $SHELL in
 *) file=.profile line="TZ='$TZ'; export TZ"
 esac
 
-say >&2 "
+test -t 1 && say >&2 "
 You can make this change permanent for yourself by appending the line
 	$line
 to the file '$file' in your home directory; then log out and log in again.
-- 
2.5.0

