how to simultaneously create rtsp and livehttp video streams in vlc from the same live source?
Your working livehttp command has double quotes, and your non-working duplicate command has single quotes.  Your shell is interpolating the variables in the double-quote example but passing them as a string literal in the latter case.  You can see what the shell is doing by changing cvlc to echo.