Skip to content
Myr

Improve documentation of shell escaping (#1096)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ehmicky · committed by GitHub · parent c6c66da · Browse files · 2 files+14 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+14 added−0 removed

  • other:+14 added−0 removed

2 files+14 added−0 removed

modified:docs/escaping.md+5 added
modified:docs/execution.md+9 added
64 unmodified lines
65 --concurrency 266 --fail-fast`;67```6869### Shells7071By default, any shell-specific syntax has no special meaning and does not need to be escaped. This prevents [shell injections](https://en.wikipedia.org/wiki/Code_injection#Shell_injection). [More info.](escaping.md#shells)7273```js74// This prints `$TASK_NAME`, not `build`75await execa({env: {TASK_NAME: 'build'}})`echo $TASK_NAME`;76```7778## Options7980[Options](api.md#options) can be passed to influence the execution's behavior.81
65 unmodified lines