Re: The read builtin erroneously consumes null bytes

Sven Mascheck <[email protected]> Wed, 24 Jun 2026 23:29:25 +0200
Newsgroups org.kernel.vger.dash
Message-ID <[email protected]>
Am 20.06.2026 um 04:51 schrieb Harald van Dijk:
 > On 6/20/26 02:52, Alexis wrote:

 >> POSIX doesn't require a `read` _builtin_,

 > It is not possible to implement the read utility as an external
 > utility because the read utility is required to modify shell
 > variables,

Offtopic, but what a nice memory:  One of Ken Thompson's aha-moments
(original: https://www.tuhs.org/pipermail/tuhs/2019-October/019167.html)

---- forwarded ----
i was writing the small utilities for the first
pdp-11 unix. (rm ls date ....)

so, cd was next.

% pwd
/usr/ken
% cd /tmp
% pwd
/usr/ken

Aha!