ESH(1) ESH(1) (NAME) esh - (SYNOPSIS) esh [-d] [-o output] [-s shell] [--] file [variable ...] esh <-h | -V> (DESCRIPTION) esh ( / embedded shell) . ERB (Embedded RuBy) . ERB (include) ESH ( 0.2.0 ). esh (file) "-" (stdin) . <% %> printf . shell ( -d ). (OPTIONS) -d . -o file "-" (STDOUT). "-" . -s shell . (space) . "/bin/sh" . -h . -V . (ENVIRONMENT) esh : ESH_AWK awk . . "awk" . ESH_MAX_DEPTH (include). 3 . ESH_SHELL -s shell . esh : ESH esh. (EXIT STATUS) esh shell awk . o 0 - . o 1 - . o 10 - . o 11 - ESH. o 12 - (include): . o 13 - : (ESH_MAX_DEPTH). (TEMPLATE SYNTAX) ESH (include) () . <% commands %> (commands) (stdout) . <%= values %> printf '%s ' (values) ( ) . . <%+ filename %> ESH (filename) . (include) ESH_MAX_DEPTH . filename . (stdin) . filename ! . <%# comment %> . -%> %> . ( ) . <%% <% . %%> %> . . . if (true) . (EXAMPLES) nginx.conf.esh http { access_log <%= $logs_dir/access.log %> main; resolver <%= $(sed -En 's/^nameserver ([^#]+)/\1/p' /etc/resolv.conf) %>; <% if nginx -V 2>&1 | grep -q lua-nginx-module; then -%> lua_package_path '<%= $(pkg-config --variable=INSTALL_LMOD lua) %>/?.lua'; <% fi -%> <%+ ./http-common.esh %> <%# The rest of the config is omitted %> } : esh -o nginx.conf nginx.conf.esh logs_dir=/var/log/nginx (AUTHORS) esh (Jakub Jirutka) . (REPORTING BUGS) : . (SEE ALSO) sh(1) 2024-07-05 ESH(1)