From owner-freebsd-current@freebsd.org Mon Feb 11 15:14:44 2019 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7DAA214D9B7F for ; Mon, 11 Feb 2019 15:14:44 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7F97C71DD5 for ; Mon, 11 Feb 2019 15:14:43 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id tDI1guURinBo4tDI3gvJLi; Mon, 11 Feb 2019 08:14:35 -0700 X-Authority-Analysis: v=2.3 cv=J8fUEzvS c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=IkcTkHD0fZMA:10 a=xqWC_Br6kY4A:10 a=CFTnQlWoA9kA:10 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=gjU6SUOc5hvUNde1TpUA:9 a=QEXdDO2ut3YA:10 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 Received: from [IPv6:2605:8d80:402:21a7:b4ea:14d:5ab6:be51] (unknown [72.143.222.194]) by spqr.komquats.com (Postfix) with ESMTPSA id DD28AB09; Mon, 11 Feb 2019 07:14:32 -0800 (PST) Date: Mon, 11 Feb 2019 07:14:09 -0800 User-Agent: K-9 Mail for Android In-Reply-To: <201902111305.x1BD5bWZ011358@slippy.cwsent.com> References: <201902111305.x1BD5bWZ011358@slippy.cwsent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Lua Loader Failure to Include To: freebsd-current@freebsd.org From: Cy Schubert Message-ID: <28B40BDE-BBA1-49F0-9EB5-22859A9812B9@cschubert.com> X-CMAE-Envelope: MS4wfLQNNXlh4JZx/QoTge4kcLMjvR4Bw0fcMMv31IQQVa/Shi/dMYsDq48N4xToeXqzlOWrR60PY9sxCgKroguWdD9h82t5ezcymi5tTgsS37qFIv5bEeVD dDWeSzpfX/awc1lI0mKiWKhDyA62VVKX3ugLOxCiRCvlg3LH7Kdj+QGSaW/GJfwKCUBNG+Haaf2vZA== X-Rspamd-Queue-Id: 7F97C71DD5 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-4.96 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; IP_SCORE(-1.94)[ip: (-5.09), ipnet: 64.59.128.0/20(-2.54), asn: 6327(-1.98), country: CA(-0.09)]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; MX_GOOD(-0.01)[cached: spqr.komquats.com]; NEURAL_HAM_SHORT(-0.81)[-0.812,0]; R_SPF_NA(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[137.136.59.64.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.zen.spamhaus.org : 127.0.0.11]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; MID_RHS_MATCH_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2019 15:14:44 -0000 On February 11, 2019 5:05:37 AM PST, Cy Schubert wrote: >Hi, > >Under the old Forth loader the line: > > include /boot/testbed/test_sys > >would load the file and execute loader commands=2E > >However the the Lua loader results in the following: > >OK include /boot/testbed/amd64-current-r >no error message >OK > >Looking at the code, interp_include() expects to run actual Lua code=20 >using luaL_dofile()=2E Is this an intended change? > >The loader statements the file above is intending to execute are: > >echo >echo=20 >echo testbed/amd64-current-r (12=2E0-CURRENT) loader file selected >set bootdev=3Ddisk1s4a: >include /boot/testbed/current=2Ehints >include /boot/testbed/do_load_KOMQUATS > >Let me know if I am to rewrite these loader statements into Lua or=20 >whether the Lua loader should be taught to read loader statements=20 >instead=2E Thinking about this while travelling to $JOB, it's probably best to leave = it as is=2E I'll rewrite the includes into Lua=2E The benefit is greater fl= exibility and functionality=2E --=20 Pardon the typos and autocorrect, small keyboard in use=2E Cheers, Cy Schubert FreeBSD UNIX: Web: http://www=2EFreeBSD=2Eorg The need of the many outweighs the greed of the few=2E