bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: echo $'\0' >a does not write the nul byte


From: Martin Schulte
Subject: Re: echo $'\0' >a does not write the nul byte
Date: Mon, 18 Jan 2021 08:32:19 +0100

Hello Ilkka, hello *!

> Bash's echo is a builtin, so using it doesn't involve an execve().

Sure – but while passing a string (however it will be encoded) containing a 
null byte to builtins would be possible in principle (as zsh shows) this would 
lead to a large bunch of problems, e.g. another incompatibility between the 
builtin and the external echo.

Best regards

Martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]