[PATCH V2] patch: don't separate \r and \n when colorizing diff output

Yuya Nishihara yuya at tcha.org
Thu Jul 12 08:12:17 EDT 2018


On Wed, 11 Jul 2018 23:33:16 +0200, Sune Foldager wrote:
> >> Hm what’s wrong with -i? At any rate, I don’t have time to do this today. 
> > 
> > -i was added with different behaviors on BSD and GNU sed. It's incompatible between those seds.
> 
> Right, although it seems plain -i would work identically on both BSD and GNU, at least from reading the man pages on macOS and Linux. They both edit in-place, but the GNU version can take an optional argument after -i, for backup. Anyway, I changed the patch.

'sed -i' didn't work on FreeBSD 10. macOS userland isn't pretty much a BSD.


More information about the Mercurial-devel mailing list