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++ - Creating new partition disk winapi -

VBA function to include CDATA -

php - Warning: file_get_contents() expects parameter 1 to be a valid path, array given 16 -