Go to main content

手册页部分 1:用户命令

退出打印视图

更新时间: 2022年7月27日 星期三
 
 

git-sh-i18n--envsubst (1)

名称

git-sh-i18n--envsubst - Git's own envsubst(1) for i18n fallbacks

用法概要

eval_gettext () {
printf "%s" "$1" | (
export PATH $(git sh-i18n--envsubst --variables "$1");
git sh-i18n--envsubst "$1"
)
}

描述

GIT-SH-I18N--ENV(1)               Git Manual               GIT-SH-I18N--ENV(1)



NAME
       git-sh-i18n--envsubst - Git's own envsubst(1) for i18n fallbacks

SYNOPSIS
       eval_gettext () {
               printf "%s" "$1" | (
                       export PATH $(git sh-i18n--envsubst --variables "$1");
                       git sh-i18n--envsubst "$1"
               )
       }


DESCRIPTION
       This is not a command the end user would want to run. Ever. This
       documentation is meant for people who are studying the plumbing scripts
       and/or are writing new ones.

       git sh-i18n--envsubst is Git's stripped-down copy of the GNU
       envsubst(1) program that comes with the GNU gettext package. It's used
       internally by git-sh-i18n(1) to interpolate the variables passed to the
       eval_gettext function.

       No promises are made about the interface, or that this program won't
       disappear without warning in the next version of Git. Don't use it.

GIT
       Part of the git(1) suite



Git 2.36.0                        04/17/2022               GIT-SH-I18N--ENV(1)