Skip to content

buffered output #478

@michbsd

Description

@michbsd

Hi,

No sure if this is a bug, or just a lack of me understanding the configuration options (so bear with me)

ugrep 7.3.0 amd64-portbld-freebsd14.1 +avx512; -P:pcre2jit; -z:zlib,bzip2,lzma,lz4,zstd,brotli,bzip3,7z,tar/pax/cpio/zip

I often need to grep a stream to stdin, e.g. varnishlog or just a simple tail - and it seems I get my grep but not remainder of the line, e.g.

 varnishlog -q 'ReqURL ~ crap'  | grep --line-buffered Age
    77: -   RespHeader     Age: 0
   168: -   RespHeader     Age: 0
   259: -   RespHeader     Age
^C

as you can see the last line does not print fully, until a new line is matched..

I've tried with and without --line-buffered - no change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionA question that has or needs further clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions