Date: Fri, 06 Mar 2020 18:15:28 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 244640] [Patch][Lua loader] Implement missing "read-conf" 4th command Message-ID: <bug-244640-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244640 Bug ID: 244640 Summary: [Patch][Lua loader] Implement missing "read-conf" 4th command Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Keywords: loader, patch-ready Severity: Affects Some People Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: olivier.freebsd@free.fr Flags: mfc-stable12? Created attachment 212202 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=212202&action=edit Patch adding "read-conf" Please find attached a patch implementing "read-conf" in the Lua loader, as defined in loader.4th(8). Is currently in use with `head` and `stable/12` machines without problems. For the record: 1. As this command is not built-in, it would normally have to obey Lua syntax, which forbids calling functions having a `-` in their name with the common function call syntax. However, . 2. As a workaround, one could type those two lines: `config=require("config")` `config.processFile "<conf_file_name>"` but this is annoying and not officially documented (most probably on purpose). Thank you. -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-244640-227>
