Re: [PATCH/RFC v2 1/1] test-lint: Only use only sed [-n] [-e command] [-f command_file]
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 22, 2019, 19:47 UTC
- Message-ID
- <xmqqo988fpag.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20190120075350.5950-1-tboegi@web.de>
tboegi@web.de writes:
Show 8 quoted lines
> From: Torsten Bögershausen <tboegi@web.de> > > From `man sed` (on a Mac OS X box): > The -E, -a and -i options are non-standard FreeBSD extensions and may not be available > on other operating systems. > > - /\bsed\s+-i/ and err 'sed -i is not portable'; > + /\bsed\s+-[^efn]\s+/ and err 'Not portable option with sed (use only [-n] [-e command] [-f command_file])';
"sed -n -i -E -e 's/foo/bar/p'" won't be caught with this as an error, but that's OK ;-).
Is this still an RFC patch?