Up to [cvs.NetBSD.org] / src / tests / bin / sh
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
This test just tested that nul chars in shell input were silently ignored. Since we no longer do that, the test is kind of pointless. But rather than delete it, just mark it as "expected fail" for now, until it is clear that the changed nul behaviour is to remain. Then the test can be changed to validate that nul chars cause errors...
PR bin/55979 Add a sh ATF test to demonstrate a bug in the way that \0 characters are dropped from scripts. This test will eventually be extended to test other potential sh script input related issues. When initially committed, this test should fail. It should succeed when the fix for the PR is committed (soon). Nb: this tests only the \0 related issues from the PR, the MSAN detected uninitialised variable (struct field) can only be detected by MSAN, as it has no visible impact on the operation of the shell when running on any real (or even emulated) hardware. (It will, however, also be fixed).