Subject: tail command does not hang on /dev/random

From: Ionut Nicula <[email-masked]>
Date: Fri, 19 Apr 2024 21:40:35 +0300

The following command hangs indefinitely, as expected:

        tail -c 4096 /dev/random

The following command immediately returns 4097 bytes, unexpectedly:

        tail -c 4097 /dev/random

Details:
- Source code obtained from: git://git.sv.gnu.org/coreutils
- Commit id: 9ab1f9db94479eca4dd2c29b4e21550ff2bcd5bb
- System:

        $ uname -a
        Linux zinc 6.1.0-20-amd64 #1 SMP PREEMPT_DYNAMIC Debian
6.1.85-1 (2024-04-11) x86_64 GNU/Linux