I am looking for a way to continue a shell escape on another line. Here is an example of what happens when I use /// to continue the line:

. ! echo asdf ///
asdf ///


As you can see, the /// seems to be taken as part of the shell command. I also tried /*<cr>*/. and note that -winexec- and -shell- behave in the same way. There is a space before the /// and none after, so that isn't the problem. Interestingly enough, the text of the command is scanned for macros, and macro substitution does take place. I am working with Stata 15 in Windows and Linux.

.