note re: quotes issues and envsubst w.r.t. here-docs

This commit is contained in:
Michael Bradley, Jr 2018-08-01 21:51:05 -05:00
parent b6a2abdb0a
commit c7b4ec25d0
1 changed files with 4 additions and 1 deletions

View File

@ -170,7 +170,10 @@ run_embark bash -c 'nvm_load && nvm install --latest-npm 8.11.3 && node --versio
Bash Bash
[here-documents](https://www.gnu.org/software/bash/manual/html_node/Redirections.html#Here-Documents) [here-documents](https://www.gnu.org/software/bash/manual/html_node/Redirections.html#Here-Documents)
can be used to compose scripts without employing an abundance of `&&`, `;`, and can be used to compose scripts without employing an abundance of `&&`, `;`, and
`\`: `\`. Just be mindful of umatched quotes and quotes-escaping when building
meta-scripts; in such scenarios, use of
[envsubst](https://www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html)
is probably called for.
``` shell ``` shell
run_embark bash -c 'exec bash << "SCRIPT" run_embark bash -c 'exec bash << "SCRIPT"