Shell Command Line – Effect of a Lone Backtick at the End

command lineshell

I accidentally typed in cd ` into terminal today and terminal didstrange things.

It put a "> " signed on the next line followed by my cursor like it wanted some input. No matter what I entered continued to do the same thing until I terminated the command.

Out of curiosity what happened? Was this a bug or a feature?

Best Answer

Answered here already... essentially

Everything you type between backticks is evaluated (executed) by the shell before the main command

Related Question