bug-cflow
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-cflow] 1 line, no newline, wc says 0 lines


From: James Dennis
Subject: [bug-cflow] 1 line, no newline, wc says 0 lines
Date: Thu, 6 Oct 2016 17:14:52 -0400

Hello.

I was writing data to a file and ran `wc -l <file>` on it to check if the file had output. wc kept reporting 0, so I assumed there was no data. After finding no reason to think data isn't being written I ran `cat <file>` instead and found data was there. It was on a single line with no newline.

I found `wc.c` in cflow's source inside the `doc/` directory and was easy enough to adjust for this specific case.

My experience may be the intended behavior. The COUNT macro certainly suggests this, but I found it misleading and would love to patch it if the cflow team agrees.

James

PS. I tried to scan the mailing list for this but I didn't find anything. Sorry if this is a repeat.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]