I have a long command in a shell escape that includes semicolons. If use -#delimit ;- to allow for a long command, Stata notices the semicolons that are part of the shell command. Is there a way to escape the semicolons so that they are passed to the OS?

#delimit ;
! very long shell command including semicolons
like this ; and various quote marks continued on this line
and on this one
#delimit cr

I did notice that Stata does remove the newlines, so that the shell gets one long line up to the first semicolon and macros are expanded but I couldn't find any documentation for any of that.