From owner-freebsd-ports@FreeBSD.ORG Fri Feb 29 14:36:18 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2021106566C for ; Fri, 29 Feb 2008 14:36:18 +0000 (UTC) (envelope-from bsd-unix@embarqmail.com) Received: from mailrelay.embarq.synacor.com (mailrelay.embarq.synacor.com [208.47.184.3]) by mx1.freebsd.org (Postfix) with ESMTP id 6E80E8FC18 for ; Fri, 29 Feb 2008 14:36:18 +0000 (UTC) (envelope-from bsd-unix@embarqmail.com) X_CMAE_Category: 0,0 Undefined,Undefined X-CNFS-Analysis: v=1.0 c=1 a=dnOK-M5T-AwA:10 a=7knOSVjY9dzkFJogUQwA:9 a=ErraDU0mUfKVGKYwlxcA:7 a=5iXXE0UqpVe5Xf_2zgNc-Jsj7y0A:4 a=gi0PWCVxevcA:10 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine Authentication-Results: smtp08.embarq.synacor.com smtp.mail=bsd-unix@embarqmail.com; spf=neutral Authentication-Results: smtp08.embarq.synacor.com smtp.user=rpratt1950@embarqmail.com; auth=pass (LOGIN) Received-SPF: neutral (smtp08.embarq.synacor.com: 76.6.195.171 is neither permitted nor denied by domain of embarqmail.com) Received: from [76.6.195.171] ([76.6.195.171:63455] helo=kt.weeeble.com) by mailrelay.embarq.synacor.com (envelope-from ) (ecelerity 2.2.1.21 r(19176)) with ESMTPA id 8D/70-04391-06818C74; Fri, 29 Feb 2008 09:36:17 -0500 Date: Fri, 29 Feb 2008 09:36:15 -0500 From: Randy Pratt To: freebsd-ports@freebsd.org Message-Id: <20080229093615.209d7bde.bsd-unix@embarqmail.com> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.8; i386-portbld-freebsd6.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Interaction between port OPTIONS and /usr/bin/tee X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Feb 2008 14:36:18 -0000 I run a script to update ports which uses /usr/bin/tee to do some logging of the process. This has worked for a very long time (years) but sometime in the past week(s) or so something has changed when an OPTIONS screen displays and "tee" is being employed. I cannot use TAB to get to the OK button. The TAB key cause the cursor to go to the next word to the right. The UP/DOWN arrows are also misbehaving. I'm sure this is hard to visualize but a short script shows the new(?) behavior: =========== #!/bin/sh logfile="~/test_interaction.log" cd /usr/ports/multimedia/mplayer make config | tee /dev/tty >> ${logfile} =========== Once you see the resulting action, just ctrl-c to exit and leave the OPTIONS settings unchanged. You may need to issue a "reset" command to restore the xterm to normal colors. Any port that uses the OPTIONS framework can be substituted and produce the same results. I thought perhaps it was a recent change to xterm behavior but I portdowngraded to xterm-228 and the behavior was the same. The last time it appeared to work correctly was on 2-16-2008 when the "Options for sox 14.0.1" screen was displayed. I last updated sources on 2-18-2008 if that has any bearing on it. I understand that logging the output of an OPTIONS selection produces a bizzare log entry but its not been a problem in the past when it was just another part of the port update process. Anyone have any ideas what's happening here? I don't think I'm misapplying the use of "tee". Thanks, Randy --