Date: Tue, 12 Feb 2002 18:13:07 -0800 From: Luigi Rizzo <rizzo@icir.org> To: Michael Bretterklieber <mbretter@inode.at> Cc: small@FreeBSD.ORG Subject: Re: 4.5R build problems Message-ID: <20020212181307.A44056@iguana.icir.org> In-Reply-To: <3C5E6460.2E15D49B@inode.at> References: <3C5E6460.2E15D49B@inode.at>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020212181307.A44056>
