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.
Related Posts with Escape character in shell command
Annual constant increase rate from monthly data*Dear all! I have some monthly inflation CPI data and wanted to create two new time series. First, t…
Heckpoisson error - could not be evaluatedDear Stata Users, I am trying to fit a Poisson model correcting for Sample selection using the heck…
How to write a text.file using loops?Hello everyone! I am trying to solve how to write a text.file using loops. I have hit an obstacle an…
Instrument exogeneity tests.Hello Statalists, I had a question relating both to STATA's instrumental variable post-estimation c…
Matching Panel Data to Diff-in-DiffHowdy, Statalisters, I'm trying to create comparison groups to ultimately move into a diff-in-diff e…
Subscribe to:
Post Comments (Atom)
0 Response to Escape character in shell command
Post a Comment