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. Should have been -0 to match xargs and be similar to find's -print0 but it's too late for that now.