GNU bug report logs - #18750
--line-buffered option doesn't work with --files-with-matches

Previous Next

Package: grep;

Reported by: "Louis S." <sautier.louis <at> gmail.com>

Date: Thu, 16 Oct 2014 21:22:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #31 received at 18750-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: 18750-done <at> debbugs.gnu.org
Cc: "Louis S." <sautier.louis <at> gmail.com>, Norihiro Tanaka <noritnk <at> kcn.ne.jp>
Subject: Re: --line-buffered option doesn't work with --files-with-matches
Date: Thu, 31 Dec 2015 00:29:46 -0800
[Message part 1 (text/plain, inline)]
Thanks for the bug report. It also seems to me that --line-buffered should apply 
to nulls, not newlines, when -z is used. Also, there are a couple of other 
places where stdout should get flushed after a newline. Perhaps we should use 
setvbuf instead (is it faster?) when -z is not also used, but right now I just 
want to get the bug fixed for the next release, so I installed the attached, 
more-conservative, patch, and am marking this bug as done.
[0001-grep-fix-l-line-buffer-bug.patch (text/x-diff, attachment)]

This bug report was last modified 9 years and 148 days ago.

Previous Next


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