<(...) vs =(...) in zsh (#899)
This commit is contained in:
parent
6164a16f57
commit
62ebf94111
8
zsh.md
8
zsh.md
|
@ -27,6 +27,14 @@ layout: 2017/sheet
|
||||||
chsh -s `which zsh`
|
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
|
### Also see
|
||||||
|
|
||||||
- [Bash cheatsheet](./bash)
|
- [Bash cheatsheet](./bash)
|
||||||
|
|
Loading…
Reference in New Issue