Package: coreutils Version: 8.30-3+b1 Severity: normal Dear Maintainer,
I don't know if this is a bug or not, but example: $ echo line 1 > test.txt $ wc test.txt 1 2 7 test.txt $ echo line 2 >> test.txt $ wc test.txt 2 4 14 test.txt $ echo -n line 3 >> test.txt $ wc test.txt 2 6 20 test.txt $ wc -l test.txt 2 test.txt $ cat test.txt line 1 line 2 line 3 $ > wc.pl $count = 0; while (<>) { $count++; } print "total $count lines\n"; $ perl wc.pl test.txt total 3 lines -- System Information: Debian Release: 10.0 APT prefers stable APT policy: (990, 'stable'), (500, 'unstable'), (500, 'oldstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.3.0-2-amd64 (SMP w/8 CPU cores) Kernel taint flags: TAINT_USER Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE=ru_RU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages coreutils depends on: ii libacl1 2.2.53-4 ii libattr1 1:2.4.48-4 ii libc6 2.29-3 ii libselinux1 2.8-1+b1 coreutils recommends no packages. coreutils suggests no packages. -- no debconf information