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
Post a Comment