diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-01-25 08:32:42 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-01-25 08:32:42 +0100 |
commit | f7fb4c7303a5776ddb421d182a92f679a8b0f868 (patch) | |
tree | 39e6cc4c2fa9117b1ba78964de0b6786fb572c38 /src/tools/zsh.md | |
parent | 8c9fd06e839c06717dd2dcb067371a5e1fc71801 (diff) | |
download | notes-f7fb4c7303a5776ddb421d182a92f679a8b0f868.tar.gz notes-f7fb4c7303a5776ddb421d182a92f679a8b0f868.zip |
bash/zsh/fish: add process substitution
Diffstat (limited to 'src/tools/zsh.md')
-rw-r--r-- | src/tools/zsh.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tools/zsh.md b/src/tools/zsh.md index a1302a4..f702655 100644 --- a/src/tools/zsh.md +++ b/src/tools/zsh.md @@ -174,6 +174,18 @@ echo ${(kv)vec} # a aa b bb for k v in ${(kv)vec)}; do ...; done ``` +## I/O redirections + +See [bash - I/O redirection](bash.md#io-redirection) + +## Process substitution + +Process substitution allows to redirect the stdout of multiple processes at +once. +```bash +vim -d <(grep foo bar) <(grep foo moose) +``` + ## Argument parsing with `zparseopts` ```zsh |