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 - sscanf() double showing zeros -

pentaho - Carte Status / Kettle Slave Server Status page shows status for random runs instead of the latest run -