GNU bug report logs -
#28468
Bug in wc -l found
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 28468 in the body.
You can then email your comments to 28468 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#28468
; Package
coreutils
.
(Fri, 15 Sep 2017 15:38:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"Weidner, Robert (I/EE-31, extern)" <extern.robert.weidner <at> audi.de>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Fri, 15 Sep 2017 15:38:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (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 2 (text/html, inline)]
[image001.png (image/png, inline)]
[monitore-serNr_all-run2.txt (text/plain, attachment)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#28468
; Package
coreutils
.
(Fri, 15 Sep 2017 15:51:01 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
On Friday 15 September 2017, Weidner, Robert (I/EE-31, extern) wrote:
> 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!
This is not a bug. wc -l only counts newlines but the last line of your
input file does not end with a newline, see
https://unix.stackexchange.com/questions/314256/wc-l-not-returning-correct-value/314258#314258
cu,
Rudi
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#28468
; Package
coreutils
.
(Fri, 15 Sep 2017 15:51:02 GMT)
Full text and
rfc822 format available.
Reply sent
to
Assaf Gordon <assafgordon <at> gmail.com>
:
You have taken responsibility.
(Fri, 15 Sep 2017 15:56:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
"Weidner, Robert (I/EE-31, extern)" <extern.robert.weidner <at> audi.de>
:
bug acknowledged by developer.
(Fri, 15 Sep 2017 15:56:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 28468-done <at> debbugs.gnu.org (full text, mbox):
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
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 14 Oct 2017 11:24:07 GMT)
Full text and
rfc822 format available.
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.