Re: [PATCH] Warnings before rebasing -i published history
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 8, 2012, 14:55 UTC
- Message-ID
- <7v8vfxetuh.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1339147124-ner-3533@calvin>
Tomas Carnecky <tomas.carnecky@gmail.com> writes:
Show 9 quoted lines
> On Fri, 08 Jun 2012 10:52:04 +0200, Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> wrote: >> Isn't a more conventional way to do that >> >> sed -e '...' "$1" >"$1".new >> mv "$1".new "$1" >> >> ? > > Is sed -i not portable or what is the reason not to use it?
It is a GNUism so it is not portable (check POSIX.1 before asking), and that is the reason to avoid it.