Skip to content

Commit

Permalink
Update quotes.md
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Sep 5, 2023
1 parent 4f4a105 commit 4c92d56
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions quotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ cmd += ' ' + file
await $`${cmd}`
```

This will not work because zx will escape the whole string, and you will end up with
`rm\ -f\ -r\ file`. Instead, you can pass an [array of arguments](#array-of-arguments):
This will not work because zx will escape the whole string.
Instead, you can pass an [array of arguments](#array-of-arguments):

```js
const args = []
Expand All @@ -96,5 +96,3 @@ args.push(file)

await $`rm ${args}`
```


0 comments on commit 4c92d56

Please sign in to comment.