[Bug 244640] [Patch][Lua loader] Implement missing "read-conf" 4th command
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Mar 6 18:15:30 UTC 2020
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 at FreeBSD.org
Reporter: olivier.freebsd at 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.
More information about the freebsd-bugs
mailing list