From: Junio C Hamano Date: Wed, 17 Feb 2021 02:03:06 GMT Subject: Re: [PATCH v2 09/27] userdiff tests: match full hunk headers Message-ID: In-Reply-To: Junio C Hamano writes: > + sed -ne "s/^@@[^@]*@@//p" actual | > + if test -n "$HEAD" > + then > + grep -F "$HEAD" I think this should also use "-x" (match the whole line) if it is portable enough; the option should be available in POSIX.1 but we haven't used it anywhere in our test suite. > + else > + grep "^.*RIGHT" > + fi > + ' > done