diff options
| author | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
| commit | 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch) | |
| tree | f1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/git/git-sh-i18n--envsubst.html | |
new repository
Diffstat (limited to 'devdocs/git/git-sh-i18n--envsubst.html')
| -rw-r--r-- | devdocs/git/git-sh-i18n--envsubst.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/devdocs/git/git-sh-i18n--envsubst.html b/devdocs/git/git-sh-i18n--envsubst.html new file mode 100644 index 00000000..d6849147 --- /dev/null +++ b/devdocs/git/git-sh-i18n--envsubst.html @@ -0,0 +1,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> |
