What is bash/zsh "|&" syntax mean? -


what |& syntax means? example:

tree |& less 

i see no difference tree |& less.

from bash manual:

command1 [ [| or |&] command2 …] 

if |& used, standard error of command1 connected command2’s standard input through pipe; shorthand 2>&1 |. implicit redirection of standard error performed after redirections specified command.

in zsh too, |& shorthand 2>&1 |


Comments

Popular posts from this blog

c++ - protocol buffers - generate NON-inline accessors -

c# - issue attaching/adding an entity object which is detached from the DB Context? -