Elektrine lite

← Feed

@JdeBP@tty0.social

2026-02-18 15:54 UTC

@gumnos@mastodon.bsd.cafe A subtler version of another part of the bug is caused by a similarly bad handling of EOF in another part of #FreeBSD #grep's roll-its-own I/O library. https://cgit.freebsd.org/src/tree/usr.bin/grep/file.c#n139 With your example of /usr/bin/grep x You can enter a single space, then terminate the read(2) with the EOF special character; and you'll have to send EOF 2 more times to get grep to exit. A regular file containing just a SPC exhibits the same behaviour of wrongly needing to receive EOF from read() twice.

Replies (0)

No replies.