GNU bug report logs - #28468
Bug in wc -l found

Previous Next

Package: coreutils;

Reported by: "Weidner, Robert (I/EE-31, extern)" <extern.robert.weidner <at> audi.de>

Date: Fri, 15 Sep 2017 15:38:02 UTC

Severity: normal

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Assaf Gordon <assafgordon <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#28468: closed (Bug in wc -l found)
Date: Fri, 15 Sep 2017 15:56:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 15 Sep 2017 09:55:16 -0600
with message-id <37767463-4576-446d-d72f-c413ea13b130 <at> gmail.com>
and subject line Re: bug#28468: Bug in wc -l found
has caused the debbugs.gnu.org bug report #28468,
regarding Bug in wc -l found
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
28468: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=28468
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: "Weidner, Robert (I/EE-31, extern)" <extern.robert.weidner <at> audi.de>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: Bug in wc -l found
Date: Fri, 15 Sep 2017 09:03:24 +0000
[Message part 3 (text/plain, inline)]
Dear GNU Team,

seems I found a bug in wc, have a look:

[cid:image001.png <at> 01D32E12.3F5A7C20]

Despite of it, I really want to say a BIG Thank you for great tool-set, especially tree, which I use for 20 years now!

THX
Rob


Mit freundlichen Gruessen

Robert Weidner
FAS Architektur / zFAS Plattform Test

BFFT Gesellschaft für Fahrzeugtechnik mbH

Im Auftrag der AUDI AG
I/EE-31, extern
85045 Ingolstadt
M: +49 (0) 1520-3427 961
mailto:extern.robert.weidner <at> audi.de
www.audi.com<http://www.audi.com/>

Dr.-Ludwig-Kraus-Straße 2,  85080 Gaimersheim, Headquarter 3.OG

BFFT Gesellschaft für Fahrzeugtechnik mbH | Dr.-Ludwig-Kraus-Straße 2 | 85080 Gaimersheim
GmbH mit Hauptsitz in Gaimersheim | AG: Ingolstadt - HRB 2775
Geschäftsführung: Markus Fichtner, Michael Mittag | UST-Id Nr. DE 812 875 182

[Message part 4 (text/html, inline)]
[image001.png (image/png, inline)]
[monitore-serNr_all-run2.txt (text/plain, attachment)]
[Message part 7 (message/rfc822, inline)]
From: Assaf Gordon <assafgordon <at> gmail.com>
To: "Weidner, Robert (I/EE-31, extern)" <extern.robert.weidner <at> audi.de>,
 28468-done <at> debbugs.gnu.org
Subject: Re: bug#28468: Bug in wc -l found
Date: Fri, 15 Sep 2017 09:55:16 -0600
tag 28468 notabug
stop

Hello Rob,

On 2017-09-15 03:03 AM, Weidner, Robert (I/EE-31, extern) wrote:
> seems I found a bug in wc, have a look:

[[
the attach screen shot shows:
    $ wc -l monitore-serNr_all-run2.txt
    16
while the attached file appears to have 17 lines.
]]

This is not a bug, but the expected behavior.
The file you attached does not have a '\n' character
at the end of the last line.

Technically, 'wc' counts the number of '\n' characters,
not the number of appeared lines.

This is explained here:
   http://www.pixelbeat.org/docs/coreutils-gotchas.html#wc


As such, I'm marking this as not-a-bug, but discussion can
continue by replying to this thread.

regards,
 - assaf



This bug report was last modified 7 years and 307 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.