ENVSUBST(1)
๐ ENVSUBST(1) ๐
okay bestie, welcome to the envsubst page from the User Commands section of your manual โ she's little, she's powerful, she does ONE thing and she does it flawlessly. no cap.
โจ NAME โจ
envsubst โ substitutes environment variables in shell format strings ๐ซถ
๐ธ SYNOPSIS ๐ธ
envsubst [OPTION] [SHELL-FORMAT]
๐ฆ DESCRIPTION ๐ฆ
Bestie. The whole job description is literally one line and it's iconic: it substitutes the values of environment variables. That's it. That's the girl. ๐
๐ 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 โญ
so like, in normal operation mode, standard input gets copied straight to standard output, and every reference to an environment variable of the form $VARIABLE or ${VARIABLE} gets swapped out for the corresponding value. the way that works is so satisfying honestly ๐ญ๐
if a SHELL-FORMAT is given, then ONLY those environment variables that are referenced in SHELL-FORMAT get substituted โ she's picky, she's selective, she's got boundaries. otherwise, ALL environment variable references occurring in standard input get substituted. everyone eats, no gatekeeping. ๐
when --variables is used, standard input is ignored (sorry babes, not your moment), and the output consists of the environment variables that are referenced in SHELL-FORMAT, one per line. clean. organized. main character energy. โจ
๐ AUTHOR ๐
Written by Bruno Haible. absolute legend behavior, fr fr ๐ซถ
๐ REPORTING BUGS ๐
found a bug? don't suffer in silence bestie, report it in the bug tracker at <https://savannah.gnu.org/projects/gettext> or slide into the inbox at <bug-gettext@gnu.org>. ๐
๐ COPYRIGHT ๐
Copyright ยฉ 2003-2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. (yes that's in all caps in the original and yes it means what it means โ no safety net, bestie, be careful out there ๐ญ)
๐ SEE ALSO ๐
The full documentation for envsubst is maintained as a Texinfo manual. If the info and envsubst programs are properly installed at your site, the command
info envsubst
should give you access to the complete manual. go read her, she's thorough ๐
and that's the whole page, bestie!! this was GNU gettext-runtime 1.0, dated January 2026 โ tysm for reading, mwah, stan envsubst, she never misses ๐
โจ๐
๐ฆ where this page comes from
- alpine 3.24: gettext-doc 1.0-r0 ยท GPL-3.0-or-later AND LGPL-2.1-or-later AND MIT
- arch rolling: gettext 1.0-2 ยท GFDL-1.2-only AND GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-only
- nixos 26.05: gettext 1.0
- nixpkgs unstable: gettext 1.0
- ubuntu stonking: gettext-base 1.0-3 ยท GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms