From owner-freebsd-questions@FreeBSD.ORG Thu Apr 28 17:27:03 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 216F91065670; Thu, 28 Apr 2011 17:27:03 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id D883A8FC12; Thu, 28 Apr 2011 17:27:02 +0000 (UTC) Received: from sbhfislrext02.fnfis.com ([192.168.249.140]) by SCSFISLTC01 (8.14.3/8.14.3) with ESMTP id p3SHQwFb018835; Thu, 28 Apr 2011 12:26:58 -0500 Received: from SBHFISLTCGW04.FNFIS.COM (Not Verified[10.132.248.123]) by sbhfislrext02.fnfis.com with MailMarshal (v6, 5, 4, 7535) id ; Thu, 28 Apr 2011 12:26:58 -0500 Received: from SBHFISLTCGW07.FNFIS.COM ([10.132.248.135]) by SBHFISLTCGW04.FNFIS.COM with Microsoft SMTPSVC(6.0.3790.4675); Thu, 28 Apr 2011 12:26:58 -0500 Received: from dtwin ([10.132.254.135]) by SBHFISLTCGW07.FNFIS.COM over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 28 Apr 2011 12:26:57 -0500 From: "Devin Teske" To: "'Alexander Best'" References: <02a701cc006a$887da210$9978e630$@vicor.com> <20110422145518.GA16734@freebsd.org> <20110422154146.GA26083@freebsd.org> <20110422173509.000077ba@unknown> <039f01cc010d$b476d0f0$1d6472d0$@vicor.com> <20110428072703.GC66450@freebsd.org> In-Reply-To: <20110428072703.GC66450@freebsd.org> Date: Thu, 28 Apr 2011 10:26:52 -0700 Organization: Vicor, Inc. Message-ID: <009501cc05c9$77611c00$66235400$@vicor.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHbf51LIKsKPgssf99P131HkrB38wGbPSlTAgK1w+gCwVx/+gErfQdlAchwAK8Bxi4JRJP7vjdw Content-Language: en-us X-OriginalArrivalTime: 28 Apr 2011 17:26:57.0982 (UTC) FILETIME=[79F8DDE0:01CC05C9] Cc: 'Bruce Cran' , freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org, "'Teske, Devin'" Subject: RE: [UPDATE] host-setup(1): a dialog(1)-based utility for configuring FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2011 17:27:03 -0000 > -----Original Message----- > From: Alexander Best [mailto:arundel@freebsd.org] > Sent: Thursday, April 28, 2011 12:27 AM > To: Devin Teske > Cc: 'Bruce Cran'; freebsd-hackers@freebsd.org; freebsd-questions@freebsd.org; > 'Teske, Devin' > Subject: Re: [UPDATE] host-setup(1): a dialog(1)-based utility for configuring > FreeBSD > > On Fri Apr 22 11, Devin Teske wrote: > > > -----Original Message----- > > > From: Bruce Cran [mailto:bruce@cran.org.uk] > > > Sent: Friday, April 22, 2011 9:35 AM > > > To: Alexander Best > > > Cc: Devin Teske; freebsd-hackers@freebsd.org; > > > freebsd-questions@freebsd.org; 'Teske, Devin' > > > Subject: Re: [UPDATE] host-setup(1): a dialog(1)-based utility for > > > configuring FreeBSD > > > > > > On Fri, 22 Apr 2011 15:41:46 +0000 > > > Alexander Best wrote: > > > > > > > FreeBSD 9.0-CURRENT amd64 > > > > > > A new version of dialog was imported a few days ago - maybe something > broke? > > > > Looks like `--hline' is not supported anymore. Thinking this should > > either be patched or documented in ERRATA/UPGRADING. > > what would be the equivalent to --hline in the new dialog(1) package? There are no equivalents to either the `--hline' or `--hfile' options. Compare the 8.2-RELEASE manual to the 9-CURRENT manual: 8.2-RELEASE: http://www.freebsd.org/cgi/man.cgi?query=dialog&apropos=0&sektion=0&manpath=Free BSD+8.2-RELEASE&format=html 9-CURRENT: http://www.freebsd.org/cgi/man.cgi?query=dialog&apropos=0&sektion=0&manpath=Free BSD+9-current&format=html When comparing the above man-pages, issues include: OLD SYNTAX: --hline line NEW SYNTAX: Not available anymore?! ISSUE: No longer capable of setting string to be displayed at bottom of dialog box (exact opposite of --title). OLD SYNTAX: --hfile file NEW SYNTAX: Not available anymore?! ISSUE: No longer capable of setting a file to be displayed by pressing either ? or F1. OLD SYNTAX: --yesno text height width [yes|no] NEW SYNTAX: --yesno text height width ISSUE: Optional fourth argument to change default selection no longer accepted?! DISCUSS: Without fourth argument to change default selection, is the programmer expected to finagle this by using common-options `--no-label YES' and `--yes-label NO' and change logic to treat NO as YES and vice-versa? OLD SYNTAX: --prgbox command height width NEW SYNTAX: Not available anymore?! ISSUE: No longer capable of displaying output of command in dialog box? DISCUSS: As an alternative, I guess we could output the text to a temporary file and then use --textbox OLD SYNTAX: --ftree file FS text height width menu-height NEW SYNTAX: Not available anymore?! ISSUE: No longer capable of displaying a tree described by the data from `file' (which should contain find(1) output). DISCUSS: There appears to be no analog (this is an informational dialog that takes no user input opposed to --dselect and --fselect which are for taking user input in the new dialog; guess we're just out of luck on these ones). OLD SYNTAX: --tree FS text height width menu-height [ item ] ... NEW SYNTAX: Not available anymore?! ISSUE: No longer capable of displaying a tree described by a series of arguments? DISCUSS: Like --ftree, there appears to be no analog. Don't get me wrong... the new dialog *adds* more options than it takes away (or breaks). However, it's frustrating that backward compatibility is not being retained. On a side-note, I notice that my CentOS 4.7 system is running a dialog that matches syntax exactly with what was imported into RELENG_9 (this is a great thing -- meaning I can write dialog(1) based scripts that are compatible with both Linux and FreeBSD with very little effort). Though I'd still like to see the gaps filled so that we could also run legacy dialog(1) based scripts designed for the [8.x and] older dialog(1). -- Devin > > > > > > > > > -- > > > Bruce Cran > > > > _____________ > > > > The information contained in this message is proprietary and/or confidential. If > you are not the intended recipient, please: (i) delete the message and all copies; > (ii) do not disclose, distribute or use the message in any manner; and (iii) notify > the sender immediately. In addition, please be aware that any message > addressed to our domain is subject to archiving and review by persons other than > the intended recipient. Thank you. > > _____________ > > -- > a13x _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. _____________