summaryrefslogtreecommitdiffstats
path: root/man1/git-sh-i18n--envsubst.1
blob: 1ab5664633cc9683bf3bcadae1fab1d9b9ab53d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
'\" t
.\"     Title: git-sh-i18n--envsubst
.\"    Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\"      Date: 2024-04-23
.\"    Manual: Git Manual
.\"    Source: Git 2.45.0.rc0.48.g10f1281498
.\"  Language: English
.\"
.TH "GIT\-SH\-I18N\-\-ENVSUBST" "1" "2024\-04\-23" "Git 2\&.45\&.0\&.rc0\&.48\&.g1" "Git Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
git-sh-i18n--envsubst \- Git\*(Aqs own envsubst(1) for i18n fallbacks
.SH "SYNOPSIS"
.sp
.nf
eval_gettext () {
        printf "%s" "$1" | (
                export PATH $(\fIgit sh\-i18n\-\-envsubst\fR \-\-variables "$1");
                \fIgit sh\-i18n\-\-envsubst\fR "$1"
        )
}
.fi
.sp
.SH "DESCRIPTION"
.sp
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\&.
.sp
\fIgit sh\-i18n\-\-envsubst\fR is Git\(cqs stripped\-down copy of the GNU \fBenvsubst(1)\fR program that comes with the GNU gettext package\&. It\(cqs used internally by \fBgit-sh-i18n\fR(1) to interpolate the variables passed to the \fBeval_gettext\fR function\&.
.sp
No promises are made about the interface, or that this program won\(cqt disappear without warning in the next version of Git\&. Don\(cqt use it\&.
.SH "GIT"
.sp
Part of the \fBgit\fR(1) suite