Re: git: 1f31e00e19f9 - main - flua: add fbsd module
- In reply to: Mark Johnston : "Re: git: 1f31e00e19f9 - main - flua: add fbsd module"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 28 Sep 2023 15:45:14 UTC
On 9/28/23 09:58, Mark Johnston wrote:
> On Wed, Sep 27, 2023 at 02:00:54PM +0000, Baptiste Daroussin wrote:
>> The branch main has been updated by bapt:
>>
>> URL: https://cgit.FreeBSD.org/src/commit/?id=1f31e00e19f9e24d4c891a24973e08a027c4f71c
>>
>> commit 1f31e00e19f9e24d4c891a24973e08a027c4f71c
>> Author: Baptiste Daroussin <bapt@FreeBSD.org>
>> AuthorDate: 2023-09-13 07:43:33 +0000
>> Commit: Baptiste Daroussin <bapt@FreeBSD.org>
>> CommitDate: 2023-09-27 14:00:00 +0000
>>
>> flua: add fbsd module
>>
>> This module is bundled into flua, it only provides for now the exec
>> function. The point of the function is to be able to execute a program
>> without actually executing a shell.
>>
>> to use it:
>> fbsd.exec({"id", "bapt"})
>
> Hi Baptiste,
>
> How is this different from posix.unistd.exec in the luaposix module?
> Wouldn't it be better to add this to the existing posix.unistd namespace
> in lposix.c? exec does not seem FreeBSD-specific.
>
fwiw, posix.unistd is expected to match some subset of the actual lposix
module: https://github.com/luaposix/luaposix -- we could add something
there, but I'd prefer to see it go upstream first before we adopt it, in
general, if it's one of these subsets-of-a-module that we implement.
Thanks,
Kyle Evans