bin/57466: dialog(1) does not read stdin, breaks subversion port

Bram Moolenaar Bram at moolenaar.net
Fri Jul 23 11:40:17 PDT 2004


The following reply was made to PR bin/57466; it has been noted by GNATS.

From: Bram Moolenaar <Bram at moolenaar.net>
To: "Bruce A. Mah" <bmah at freebsd.org>
Cc: freebsd-gnats-submit at freebsd.org, bram at moolenaar.net
Subject: Re: bin/57466: dialog(1) does not read stdin, breaks subversion
	port
Date: Fri, 23 Jul 2004 20:37:59 +0200

 Bruce -
 
 > This PR caught my eye because at one point I used to maintain the
 > subversion port.  When did it ever use the dialog command?  It didn't
 > when I used to maintain it, and it doesn't seem to now.
 > 
 > Is this still a problem?
 
 I'll try it out (now using FreeBSD 4.9)...  Hmm, now the subversion port
 breaks because of a nasty dependency:
 	An older version of textproc/expat2 is already installed (expat-1.95.6_1)
 The usual problem: 126 packages depend on expat-1.95.6_1!  Thus I can't
 use the subversion port at this time.  This kind of dependency makes
 the port system completely useless!
 
 Note that the original problem is not with subversion, it just happened
 to occur in the subversion port.  The actual problem is with "dialog".
 
 I tried making a test to show the problem with just running "dialog":
 
 	dialog --yesno question 6 50 |& tee /tmp/tt
 
 Problem is that keys like <Tab> and <Space> are not handled.  But Enter
 is used.  Could it be that the terminal is not set to raw mode?  Without
 redirecting stderr it works fine, thus I suspect a stty() is done on
 stderr while the input is read from stdin.  The xterm settings are also
 messed up (scrolling works as if the number of lines is much less, need
 to do a "soft rest" to fix that).
 
 - Bram
 
 -- 
 hundred-and-one symptoms of being an internet addict:
 65. The last time you looked at the clock it was 11:30pm, and in what
     seems like only a few seconds later, your sister runs past you to
     catch her 7am school bus.
 
  /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
 ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
 \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///


More information about the freebsd-bugs mailing list