From owner-freebsd-small Sat Feb 16 19: 9:48 2002 Delivered-To: freebsd-small@freebsd.org Received: from hawaii.rr.com (hnlmail2.hawaii.rr.com [24.25.227.35]) by hub.freebsd.org (Postfix) with ESMTP id 28C8437B404 for ; Sat, 16 Feb 2002 19:09:44 -0800 (PST) Received: from vaio ([66.91.9.127]) by hawaii.rr.com with Microsoft SMTPSVC(5.5.1877.517.51); Sat, 16 Feb 2002 17:09:42 -1000 From: "Randal Masutani" To: Luigi Rizzo Date: Sat, 16 Feb 2002 17:07:12 -1000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: 4.5R build problems Reply-To: randal@mailrelay.hits.net Cc: small@FreeBSD.ORG Message-ID: <3C6E91C1.21604.3073EF@localhost> In-reply-to: <20020212181307.A44056@iguana.icir.org> References: <3C5E6460.2E15D49B@inode.at> X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I checked out the latest picobsd build script v1.1.2.21. It works okay for the most part. However, there are a few other areas that seem to be over looked in the main_dialog(). The menu items F, M, and U(Floppy size, MFS bytes, UFS bytes) do not have the fixes for the ( ) replacements with { }. Also the menu items K and E(edit kernel, crunch.conf) when you exit the editor and save your changes it exits from the build script on error; rm: /tmp/reply.qRB9DcD3ae: No such file or directory The K and E menu items do not create the ${reply} temp file and therefore errors out when it gets to the "rm ${reply}" command. There is a "rm ${reply}" command in the beginning of the main_dialog(); I think the command needs the "rm -f ${reply}" option. Randal On 12 Feb 2002, at 18:13, Luigi Rizzo wrote: > On Mon, Feb 04, 2002 at 11:37:20AM +0100, Michael Bretterklieber wrote: > > > I can't set any value with the dialog. If I choose a type then after > > choosing it the value is lost. > > I debugged It and found that it works if I remove the () from the dialog > > thanks - noted. Your diagnosis is correct, you need to replace ( ) with { } > I will commit a fix shortly. > > cheers > luigi > > > ... > > main_dialog() > > ...... > > case ${ans} in > > T) > > ... > > # (dialog --menu "Setup the type of configuration" 12 70 5 $l \ > > # 2> ${c_reply} && set_type "`cat ${c_reply}`" ${SITE} ) > > || true > > ^^^^ ^^doesn't work > > > > dialog --menu "Setup the type of configuration" 12 70 5 $l \ > > 2> ${c_reply} && set_type "`cat ${c_reply}`" ${SITE} > > > > ^^^^works > > > > It seems that the () produce implicit a subshell, because in the > > set_type-function the values are correct set and after leaving this > > function the values are lost. > > > > bye, > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-small" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-small" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message