Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Feb 2008 10:15:04 -0500
From:      Wesley Shields <wxs@FreeBSD.org>
To:        Randy Pratt <bsd-unix@embarqmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Interaction between port OPTIONS and /usr/bin/tee
Message-ID:  <20080229151504.GB31664@atarininja.org>
In-Reply-To: <20080229150925.GA31664@atarininja.org>
References:  <20080229093615.209d7bde.bsd-unix@embarqmail.com> <20080229150925.GA31664@atarininja.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 29, 2008 at 10:09:25AM -0500, Wesley Shields wrote:
> On Fri, Feb 29, 2008 at 09:36:15AM -0500, Randy Pratt wrote:
> > 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".
> 
> You never mention which version of FreeBSD you are using.  My money is
> on ncurses changes, though it's hard to tell until we know what you are
> using.
> 
> I can see similar behavior on a current box from a few days ago.  My
> guess is this won't happen on 6.2-RELEASE?

I'm wrong.  I just found a 6.2 VM laying around and quickly tested it on
that.  The result is just like you described.

Sorry for the noise.

-- WXS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080229151504.GB31664>