diff options
author | Pádraig Brady <P@draigBrady.com> | 2023-02-05 19:52:31 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2023-04-08 12:19:40 +0100 |
commit | ce630dfc7ef32ff7e35c627bd061a45ce9053d9d (patch) | |
tree | e198bd7070f7ce510498c61af2243096e4913104 /NEWS | |
parent | f6c21f6d3addb6461c41af612e73fbb15d21545f (diff) | |
download | coreutils-ce630dfc7ef32ff7e35c627bd061a45ce9053d9d.tar.gz |
wc: ensure we update file offset
* src/wc.c (wc): Update the offset when not reading,
and do read if we can't update the offset.
* tests/misc/wc-proc.sh: Add a test case.
* NEWS: Mention the bug fix.
Fixes https://bugs.gnu.org/61300
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -27,6 +27,10 @@ GNU coreutils NEWS -*- outline -*- wc will now diagnose if any total counts have overflowed. [This bug was present in "the beginning".] + `wc -c` will again correctly update the read offset of inputs. + Previously it deduced the size of inputs while leaving the offset unchanged. + [bug introduced in coreutils-8.27] + ** Changes in behavior 'cp -n' and 'mv -n' now issue an error diagnostic if skipping a file, |