Read the MULTIOS documentation on the zshmisc manual zshmisc . This is a zsh function that forces it to redirect output to multiple files at the same time, and can also be a channel.
eg.
ls >a >b
will receive both a and b filled with the contents of the directory.
from the zshmisc documentation:
If the user tries to open the file descriptor for writing more than once, the shell opens the file descriptor as a channel for the process that copies its input to all the specified outputs, similar to tee, provided that the MULTIOS option is set, as by default. In this way:
date >foo >bar
writes the date to two files named foo and bar . Note that the channel is an implicit redirect; In this way,
date >foo | cat
writes the date to the foo file, and also passes it to cat.
To enable it, do setopt multios to disable the setopt nomultios function:
$ setopt nomultios $ ls -l > x | wc -l 0 $ setopt multios $ ls -l > x | wc -l 36
source share