From 920d16436e0d5f37e9f6d31236ee87b716f3c82f Mon Sep 17 00:00:00 2001
From: johannst
fd 1
to fd 2
, effectively redirecting stderr
to stdout
stdout
to file
Process substitution allows to redirect the stdout of multiple processes at +once.
+vim -d <(grep foo bar) <(grep foo moose)
+
getopts
The getopts
builtin uses following global variables:
# 'noclobber', fail if 'log' already exists
echo foo >? log
+Redirect output of multiple processes. Same as <(..)
in bash.
diff (sort a | psub) (sort b | psub)
+
if
/ else
if grep foo bar
diff --git a/tools/zsh.html b/tools/zsh.html
index 4597a1b..fdcb06e 100644
--- a/tools/zsh.html
+++ b/tools/zsh.html
@@ -310,6 +310,13 @@ echo ${(kv)vec} # a aa b bb
# Iterate over key value pairs.
for k v in ${(kv)vec)}; do ...; done
+Process substitution allows to redirect the stdout of multiple processes at +once.
+vim -d <(grep foo bar) <(grep foo moose)
+
zparseopts
zparseopts [-D] [-E] [-A assoc] specs
--
cgit v1.2.3