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

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -