Skip site navigation (1)Skip section navigation (2)
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/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244640

            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=3D212202&action=
=3Dedit
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 synt=
ax,
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=3Drequire("config")`
`config.processFile "<conf_file_name>"`
but this is annoying and not officially documented (most probably on purpos=
e).

Thank you.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-244640-227>