scripts/shell.c doesn't support '\0'
Chris Boot
bootc at debian.org
Tue Dec 28 11:00:03 UTC 2021
On 28/12/2021 08:07, Denys Vlasenko wrote:
> On Mon, Dec 27, 2021 at 8:31 PM Chris Boot <bootc at debian.org> wrote:
>> Hi all,
>>
>> I've started experimentally packaging BusyBox 1.35.0 for Debian, and
>> found that the "awk printf('%c') can output NUL" test kept failing.
>
> Works for me.
I would only expect it to fail if /bin/sh is a shell whose 'echo'
doesn't understand the '-ne' flags, such as dash.
>> It
>> turns out that scripts/shell.c cannot output a NUL for the "\0" in the
>> test string, thus breaking this test.
>
> What is scripts/shell.c? I don't see such a file.
Sorry, I was a bit tired last night. The source is scripts/echo.c, which
gets built to testsuite/echo-ne in testsuite/testing.sh.
--
Chris Boot
bootc at debian.org
More information about the busybox
mailing list