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

Re: [PATCH/RFC 3/8] gettextize: git-pull eval_gettext + die message

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Sep 13, 2010, 21:57 UTC
Message-ID
<AANLkTikn8wB+DhoDJfKOiiNOVSAh0wd49ogpP_WDQ_DA@mail.gmail.com>
In-Reply-To
<1284406558-23684-4-git-send-email-avarab@gmail.com>
On Mon, Sep 13, 2010 at 19:35, Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
Show 7 quoted lines
> -$ git diff '$orig_head'
> +\$ git diff \$orig_head
>  output, run
> -$ git reset --hard
> -to recover.'
> +\$ git reset --hard
> +to recover.")"
"make pot" rightly whines about this:
    git-pull.sh:265: warning: Although being used in a format string
    position, the msgid is not a valid Shell format string. Reason:
    The string refers to a shell variable whose value may be different
    inside shell functions.

Just using "$" instead of "\$" for "$ git ...." works, i.e. eval_gettext "foo $ bar" instead of eval_gettext "foo \$ bar".

Is that portable? Is " $ " always the same as ' $ ' in POSIX shells?
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 5 of 10 in “gettextize: git-pull”
  1. 0/8 gettextize: git-pullÆvar Arnfjörð Bjarmason, Sep 13, 2010
  2. 1/8 gettextize: git-pull add git-sh-i18nÆvar Arnfjörð Bjarmason, Sep 13, 2010
  3. 2/8 gettextize: git-pull die messagesÆvar Arnfjörð Bjarmason, Sep 13, 2010
  4. 3/8 gettextize: git-pull eval_gettext + die messageÆvar Arnfjörð Bjarmason, Sep 13, 2010
  5. Ævar Arnfjörð BjarmasonSep 13, 2010
  6. 4/8 gettextize: git-pull eval_gettext + warning messageÆvar Arnfjörð Bjarmason, Sep 13, 2010
  7. 5/8 gettextize: git-pull split up "no candidate" messageÆvar Arnfjörð Bjarmason, Sep 13, 2010
  8. 6/8 gettextize: git-pull "You asked to pull" messageÆvar Arnfjörð Bjarmason, Sep 13, 2010
  9. 7/8 gettextize: git-pull "[...] not currently on a branch" messageÆvar Arnfjörð Bjarmason, Sep 13, 2010
  10. 8/8 gettextize: git-pull "rebase against" / "merge with" messagesÆvar Arnfjörð Bjarmason, Sep 13, 2010

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.