<(...) vs =(...) in zsh (#899)

This commit is contained in:
Bez Hermoso 2018-11-16 11:59:38 -08:00 committed by chad d
parent 6164a16f57
commit 62ebf94111
1 changed files with 8 additions and 0 deletions

8
zsh.md
View File

@ -27,6 +27,14 @@ layout: 2017/sheet
chsh -s `which zsh`
```
### Process Substitution
| Expression | Example | Description
| --- | --- | ---
| `<(COMMAND)` | `grep "needle" <(curl "https://haystack.io")` | Replace argument with _named pipe/FIFO_ (read-only) with command output
| `=(COMMAND)` | `vim =(curl "https://haystack.io")` | Replace argument with _file_ (writable) containing command output
{: .-headers}
### Also see
- [Bash cheatsheet](./bash)