Date: Sat, 16 Feb 2002 17:07:12 -1000 From: "Randal Masutani" <randal@mailrelay.hits.net> To: Luigi Rizzo <rizzo@icir.org> Cc: small@FreeBSD.ORG Subject: Re: 4.5R build problems Message-ID: <3C6E91C1.21604.3073EF@localhost> In-Reply-To: <20020212181307.A44056@iguana.icir.org> References: <3C5E6460.2E15D49B@inode.at>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C6E91C1.21604.3073EF>