M-x shell and echoed commands

Lubos Pintes <[email protected]> Thu, 6 Apr 2017 15:50:49 +0200
Newsgroups gmane.emacs.windows
Message-ID <[email protected]>
Hello,
If I run a shell in Emacs, the issued command is duplicated. I would 
like to avoid this if possible. For example:
c:\>gcc
*gcc
gcc: fatal error: no input files
compilation terminated.

c:\>
I am talking about the star-marked file in my example.

Is the duplication caused by some Emacs functionality, or the cmd.exe 
itself?
Because this is not happening on normal Windows console.