git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/4] git-sh-i18n--envsubst: our own envsubst(1) for eval_gettext()

From
Junio C Hamano <gitster@pobox.com>
Date
May 9, 2011, 03:17 UTC
Message-ID
<7vsjsor29t.fsf@alter.siamese.dyndns.org>
In-Reply-To
<BANLkTikSvU4haNpRmPq8o2P0yB1Y3t0Ahg@mail.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
> Or are we sure that this can't work in POSIX (or non-POSIX shells)?

You need to implement the same logic to tokenize enough to understand the expansion the shell does inside dq. Yes, shell is general programming language and you can theoretically implement it, but would the result be a practical solution? I doubt it.

Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 5 of 13 in “i18n: Add shell script translation infrastructure”
  1. 0/4 i18n: Add shell script translation infrastructureÆvar Arnfjörð Bjarmason, May 8, 2011
  2. 1/4 git-sh-i18n--envsubst: our own envsubst(1) for eval_gettext()Ævar Arnfjörð Bjarmason, May 8, 2011
  3. Junio C HamanoMay 8, 2011
  4. Ævar Arnfjörð BjarmasonMay 8, 2011
  5. Junio C HamanoMay 9, 2011
  6. Ævar Arnfjörð BjarmasonMay 9, 2011
  7. 2/4 git-sh-i18n.sh: add no-op gettext() and eval_gettext() wrappersÆvar Arnfjörð Bjarmason, May 8, 2011
  8. 3/4 git-sh-i18n.sh: add GIT_GETTEXT_POISON supportÆvar Arnfjörð Bjarmason, May 8, 2011
  9. 4/4 Makefile: add xgettext target for *.sh filesÆvar Arnfjörð Bjarmason, May 8, 2011
  10. Sverre RabbelierMay 8, 2011
  11. Ævar Arnfjörð BjarmasonMay 8, 2011
  12. Sverre RabbelierMay 8, 2011
  13. Ævar Arnfjörð BjarmasonMay 8, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.