# Double #s when defining a new command that uses \mint instead of using \mint directly

Why does \dollarcom give a different result than \mint{bash}|$#|? \documentclass{article} \usepackage{minted} \newcommand{\dollarcom}{\mint{bash}/$#/}

\begin{document}

\dollarcom

\begin{document}

\dollarcom

\mint{bash}|\$#|

\end{document}

-