Re: git grep: ^$ false match at end of file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 10 2025, Jeff King wrote:

> but it is weird to me that patmatch() will match "^$" to the end of the
> buffer at all. It is just calling regexec_buf() behind the scenes, so I
> guess this is just a weird special case there, and may even depend on
> the regex implementation.

Shouldn't the matcher be called with REG_NOTEOL in that case?

-- 
Andreas Schwab, schwab@xxxxxxxxxxxxxx
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux