My env: zsh, macOS
Command in concern:
echo 'hi' | tee > a b c
echo 'hi' > a b c
- Command 1 creates files named
a
,b
andc
with contenthi
. - Command 2 creates a file named
a
with contenthi b c
.
AFAIK, only the usage of Command 1 without >
is documented in the manpage of tee
:
echo 'hi' | tee a b c
I want some help to understand why adding >
the above code(i.e., Command 1) still creates multiple files, whereas Command 2 creates only one file.