blob: d6849147613585f514e33e892d99a8e6e4647517 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
<h1>git-sh-i18n--envsubst</h1> <h2 id="_name">Name</h2> <div class="sectionbody"> <p>git-sh-i18n—envsubst - Git’s own envsubst(1) for i18n fallbacks</p> </div> <h2 id="_synopsis">Synopsis</h2> <div class="sectionbody"> <div class="verseblock"> <pre class="content">eval_gettext () {
printf "%s" "$1" | (
export PATH $(git sh-i18n--envsubst --variables "$1");
git sh-i18n--envsubst "$1"
)
}</pre> </div> </div> <h2 id="_description">Description</h2> <div class="sectionbody"> <p>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.</p> <p><code>git sh-i18n--envsubst</code> is Git’s stripped-down copy of the GNU <code>envsubst(1)</code> program that comes with the GNU gettext package. It’s used internally by <a href="git-sh-i18n">git-sh-i18n[1]</a> to interpolate the variables passed to the <code>eval_gettext</code> function.</p> <p>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.</p> </div><div class="_attribution">
<p class="_attribution-p">
© 2012–2024 Scott Chacon and others<br>Licensed under the MIT License.<br>
<a href="https://git-scm.com/docs/git-sh-i18n--envsubst" class="_attribution-link">https://git-scm.com/docs/git-sh-i18n--envsubst</a>
</p>
</div>
|