From b13286f5b346b9181a79ce725e9ac27197c57c7d Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Thu, 19 Aug 2021 23:44:28 +0200 Subject: [PATCH] Update quotes.md --- docs/quotes.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/quotes.md b/docs/quotes.md index c98df1fc7..3f0a22e0c 100644 --- a/docs/quotes.md +++ b/docs/quotes.md @@ -32,7 +32,9 @@ await $`mkdir path/to-dir/${name}` ### Array of arguments The `zx` can also take an array or arguments in the `${...}`. Items of the array -will be quoted separately and concatenated via a space. Do **not** add a `.join(' ')`. +will be quoted separately and concatenated via a space. + +Do **not** add a `.join(' ')`. ```js let flags = [ @@ -52,14 +54,16 @@ await $`git log ${'--oneline --decorate --color'.split(' ')}` ### globbing and `~` -As everything passed through `${...}` will be escaped, you can't use `~` -or glob syntax. In order for this to work the zx provides +As everything passed through `${...}` will be escaped, you can't use `~` or glob +syntax. + +In order for this to work the zx provides [globby package](../README.md#globby-package). For instead of this: ```js -let files = '~/dev/**/*.md' +let files = '~/dev/**/*.md' // wrong await $`ls ${files}` ```