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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 13, 2010 at 19:35, Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx> wrote:

> -$ 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?
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]