如果在 >(重定向)之后没有定义目的地会发生什么?

Ros*_*ika 0 command-line syntax

最近我想阅读 mplayer 的手册页。所以我需要man mplayer在终端中输入。

但由于笨拙,我打字man mplayer>

我知道我可以使用该命令将输出重定向到例如文本文件。

但是谁能告诉我当我忘记定义目的地时究竟会发生什么,就像我所做的那样man mplayer>?如果有的话,它被重定向到哪里?

我收到错误

bash: syntax error near unexpected token `newline'
Run Code Online (Sandbox Code Playgroud)

在 bash 或

fish: Expected a string, but instead found end of the statement
man mplayer>
            ^
Run Code Online (Sandbox Code Playgroud)

在鱼。

Tnx 很多。罗西卡

我的系统:Linux/Lubuntu 18.04.2。LTS,64 位

Leo*_*Mew 6

答案很简单:您遇到语法错误,没有目标就不会重定向输出