What does “|&” mean in bash?

前端 未结 2 610
故里飘歌
故里飘歌 2021-01-31 01:39

For example

echo \"aaa\" |& cat 

What does |& mean here?

Is there a website recommended to look up those? Since m

2条回答
  •  甜味超标
    2021-01-31 02:16

    This operator pipes both standard output and standard error from the left hand side to the right hand side.

    The Bash reference manual has a comprehensive index of all operators where you can lookup these operators.

提交回复
热议问题