0

recently I wanted to read the man pages for mplayer. So I needed to type man mplayer in the terminal.

Yet out of clumsiness I typed man mplayer>.

I know that I could redirect the output e.g. to a text-file with that command.

But can anyone tell me what exactly happens when I forget to define a destination, as I did with man mplayer> ? Where is it redirected to, if at all?

I get the error

bash: syntax error near unexpected token `newline'

in bash or

fish: Expected a string, but instead found end of the statement
man mplayer>
            ^

in fish.

Tnx a lot in andvance. Rosika

My system: Linux/Lubuntu 18.04.2. LTS, 64 bit

  • 1
    You got syntax error, output is not redirected without destination – LeonidMew Apr 3 at 15:21
  • @LeonidMew: Thanks a lot for the fast answer. O.K. that´s what I almost thought as well. But I wanted to be sure. Thanks for the clarification. – Rosika Apr 3 at 15:29
  • 2
    @LeonidMew Please consider turning your comment to an answer so that Rosika can accept the answer as correct and place the green check mark (✅) on the left margin of the answer. – user68186 Apr 3 at 15:38
6

Answer is simple: You got syntax error, output is not redirected without destination

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.