Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: re: shell


From   Neil Shephard <[email protected]>
To   [email protected]
Subject   Re: st: re: shell
Date   Fri, 6 May 2005 19:28:04 +0100

On 5/6/05, Kit Baum <[email protected]> wrote:
> Strange that the earlier code does not work, since
> 
> . foreach w of local c {
>    2. !ls ./`w'/*.*
>    3. }
> 
> works fine (when local c = c(alpha) and  pwd =
> /applications/stata/ado/base/)
> 
> I cannot get the parser to misbehave.
> 
> Kit Baum, Boston College Economics
> http://ideas.repec.org/e/pba1.html

Kit,

Are you typing this in at the command line, or is it in a do-file?

I tried it both interactively and from a do-file and it worked fine
interactively, but not from the do-file.

The manual ([U] (Stata8) p173) states that...

 "The /* */, //, and /// comment indicators can be used in do-files
and ado-files only; you may not use them interactively."

Neil

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index