From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/git/git-sh-i18n--envsubst.html | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 devdocs/git/git-sh-i18n--envsubst.html (limited to 'devdocs/git/git-sh-i18n--envsubst.html') 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 @@ +

git-sh-i18n--envsubst

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.

+

+ © 2012–2024 Scott Chacon and others
Licensed under the MIT License.
+ https://git-scm.com/docs/git-sh-i18n--envsubst +

+
-- cgit v1.2.3