A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html below:

envsubst Invocation (GNU gettext utilities)

Next: Invoking the eval_gettext function, Previous: Invoking the printf_ngettext program, Up: sh - Shell Script   [Contents][Index]

15.5.15.12 Invoking the envsubst program
envsubst [option] [shell-format]

The envsubst program substitutes the values of environment variables.

Operation mode

‘-v’
‘--variables’

Output the variables occurring in shell-format.

Informative output

‘-h’
‘--help’

Display this help and exit.

‘-V’
‘--version’

Output version information and exit.

In normal operation mode, standard input is copied to standard output, with references to environment variables of the form $VARIABLE or ${VARIABLE} being replaced with the corresponding values. If a shell-format is given, only those environment variables that are referenced in shell-format are substituted; otherwise all environment variables references occurring in standard input are substituted.

These substitutions are a subset of the substitutions that a shell performs on unquoted and double-quoted strings. Other kinds of substitutions done by a shell, such as ${variable-default} or $(command-list) or `command-list`, are not performed by the envsubst program, due to security reasons.

When --variables is used, standard input is ignored, and the output consists of the environment variables that are referenced in shell-format, one per line.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4