Sorry for the delay, it was night in my timezone.

Sebastian Benoit <be...@openbsd.org> writes:

> Sebastian Benoit(be...@openbsd.org) on 2021.01.25 00:27:05 +0100:
>> Theo de Raadt(dera...@openbsd.org) on 2021.01.24 16:01:32 -0700:
>> > Stuart Henderson <s...@spacehopper.org> wrote:
>> > 
>> > > On 2021/01/24 12:10, Theo de Raadt wrote:
>> > > > I completely despise that the option is called "--null".
>> > > > 
>> > > > Someone was a complete idiot.
>> > > 
>> > > gnu grep has both --null and -z for this (why do they do that?!).
>> > > If it's added as --null it should be added as -z too.
>> > > 
>> > > Looking at Debian codesearch most things using it as --null use other
>> > > long options that we don't have. Maybe just adding as -z would be
>> > > enough. It does seem a useful and fairly widely supported feature.
>> > 
>> > Yes, maybe just add -z.
>> 
>> Actually it's "-Z, --null". The lowercase -z in gnu grep is
>> 
>>        -z, --null-data
>>               Treat input and output data as sequences of lines, each
>>            terminated by a zero byte (the ASCII NUL character) instead of
>>            a newline.  Like the -Z or --null option, this option can be
>>            used with commands like sort-z to process arbitrary file
>>            names.
>
> And we already have -z for "force grep to behave as zgrep".
>
> Diff below with tedu@ suggestion and changed manpage text.

Yes, that's the reason why I haven't touched other flags.  --null seems
to be the most widespread option, at least by looking at other BSDs and
GNU, and my intent was to ease the portability.

Thanks Sebastien for fixing the manpage, it reads definitely better, and
thanks tedu@ for noticing the extra patching.   FWIW, OK by me :)

Reply via email to