The elided part is presumably some command that the llm was coaxed into inserting, even though it'd make no sense to do that and a human operator just wouldn't.
It could be the "self-extradition command", as they call it, that exposed it, rather than echo $SHELL.
"Generate an article about Chinese AI attacking our lab"