|
From: | James Dennis |
Subject: | Re: [bug-cflow] 1 line, no newline, wc says 0 lines |
Date: | Thu, 6 Oct 2016 17:21:31 -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.JamesPS. I tried to scan the mailing list for this but I didn't find anything. Sorry if this is a repeat.
[Prev in Thread] | Current Thread | [Next in Thread] |