OpenBSD is changing the default shell to disallow invalid NUL characters in input. The commit message by Theo de Raadt reveals the reasoning behind this decision, as many shells interpret NUL bytes differently, causing divergent behavior. It is surprising that some are trying to rewrite history and expecting others to follow suit. The Unix world needs to standardize input to prevent further divergence between shells. This change aims to make software behavior more consistent. To benefit from this change, one must be running OpenBSD-current. Overall, this is an example of OpenBSD making software behavior more rational for users.
https://www.undeadly.org/cgi?action=article;sid=20240924105732