Re: [RFC/PATCH 1/5] gettext: fix bug in git-sh-i18n's eval_gettext() by using envsubst(1)
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Nov 9, 2010, 07:33 UTC
- Message-ID
- <4CD8F965.6050402@viscovery.net>
- In-Reply-To
- <AANLkTimjRwSxkemMffASvHCxK009b1fnvNRs05_T_1DF@mail.gmail.com>
Am 11/8/2010 23:39, schrieb Ævar Arnfjörð Bjarmason:
> eval_gettext () {
> gettext "$1" | (export PATH `envsubst --variables "$1"`; envsubst "$1")
> }So, for every message printed, you have at least 3 fork()s (usually even more)! I'm not happy about that. You *must* avoid this at least for NO_GETTEXT builds, but if you can reduce them even for no-NO_GETTEXT builds, it would be great.
-- Hannes