From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Sixt Subject: Re: [RFC/PATCH 1/5] gettext: fix bug in git-sh-i18n's eval_gettext() by using envsubst(1) Date: Tue, 09 Nov 2010 08:33:57 +0100 Message-ID: <4CD8F965.6050402@viscovery.net> References: <1288524860-538-2-git-send-email-avarab@gmail.com> <4CCFCCC8.7080603@viscovery.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: git@vger.kernel.org, Jonathan Nieder , Junio C Hamano To: =?UTF-8?B?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= X-From: git-owner@vger.kernel.org Tue Nov 09 08:34:12 2010 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PFiiY-00039N-Vk for gcvg-git-2@lo.gmane.org; Tue, 09 Nov 2010 08:34:11 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752796Ab0KIHeG convert rfc822-to-quoted-printable (ORCPT ); Tue, 9 Nov 2010 02:34:06 -0500 Received: from lilzmailso01.liwest.at ([212.33.55.23]:38540 "EHLO lilzmailso01.liwest.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752320Ab0KIHeD convert rfc822-to-8bit (ORCPT ); Tue, 9 Nov 2010 02:34:03 -0500 Received: from cpe228-254.liwest.at ([81.10.228.254] helo=theia.linz.viscovery) by lilzmailso01.liwest.at with esmtpa (Exim 4.69) (envelope-from ) id 1PFiiM-0002tj-Ed; Tue, 09 Nov 2010 08:33:58 +0100 Received: from [127.0.0.1] (J6T.linz.viscovery [192.168.1.95]) by theia.linz.viscovery (Postfix) with ESMTP id 262431660F; Tue, 9 Nov 2010 08:33:58 +0100 (CET) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 In-Reply-To: X-Enigmail-Version: 1.1.1 X-Spam-Score: -1.4 (-) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Am 11/8/2010 23:39, schrieb =C3=86var Arnfj=C3=B6r=C3=B0 Bjarmason: > eval_gettext () { > gettext "$1" | (export PATH `envsubst --variables "$1"`; envsub= st "$1") > } So, for every message printed, you have at least 3 fork()s (usually eve= n 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