New answers tagged fork
0
votes
Fork stdin to stdout & stderr?
In zsh, when you redirect a fd more than once for output, zsh does the forking internally, so you'd do:
echo hi >&1 >&2
To output both to stdout and stderr.
Though, if you wanted to ...
Top 50 recent answers are included
Related Tags
fork × 177process × 58
linux × 42
bash × 29
c × 21
shell × 16
exec × 16
system-calls × 10
shell-script × 9
memory × 8
signals × 8
file-descriptors × 8
pipe × 7
background-process × 7
systemd × 6
debian × 5
ubuntu × 5
linux-kernel × 5
virtual-memory × 5
strace × 5
kernel × 4
zsh × 4
daemon × 4
process-management × 4
subshell × 4