Zsh pipe all output to command Zsh pipe all output to command shell shell

Zsh pipe all output to command


&> only redirects standard output and standard error, not all file descriptors that command might write to. The equivalent pipe, though, is

command |& grep  # Equivalent to command 2>&1 | grep