From owner-freebsd-small Tue Feb 12 18:13:49 2002 Delivered-To: freebsd-small@freebsd.org Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 5B8B337B42B for ; Tue, 12 Feb 2002 18:13:27 -0800 (PST) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g1D2D7144142; Tue, 12 Feb 2002 18:13:07 -0800 (PST) (envelope-from rizzo) Date: Tue, 12 Feb 2002 18:13:07 -0800 From: Luigi Rizzo To: Michael Bretterklieber Cc: small@FreeBSD.ORG Subject: Re: 4.5R build problems Message-ID: <20020212181307.A44056@iguana.icir.org> References: <3C5E6460.2E15D49B@inode.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C5E6460.2E15D49B@inode.at> User-Agent: Mutt/1.3.23i 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 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