|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: shell
.
Kevin Crow from StataCorp notes this is not a bug and warns I should
not try to run this command from a terminal application in a GUI
because Stata doesn't know how to bring up a Unix terminal and then
open Vim.
I was led astray by misunderstanding the post about Vim by Nick Cox at:
http://fmwww.bc.edu/repec/bocode/t/textEditors.html
which said,
"The following Stata programs are examples of how vim may be called
easily from within Stata to edit named files using shell or xshell or
winexec. (If the version of the editor you are using is called vi,
then clearly you should use that name instead.) For Unix/Linux
(console) users,
program vim version 8 * discard shell vim `*' end
and for Unix/Linux (GUI) users,
program vim version 8 * discard xshell vi `*' end"
In retrospect, Nick clearly said "console" users in the first example,
and in the second, xshell is not available to Mac Stata.
The Stata shell command works with bbedit, because that GUI
application installs a command line tool specific to the bbedit GUI.
On Mar 31, 2008, at 11:51 PM, David Airey wrote:
.
I noticed that,
shell vim myfile.do
locks up my StataMP for OS X.
I get warnings that input and output are not to and from a terminal.
Don't try it. I guess shell is not the same for OS X unix. Certainly
Vim works fine from the bash shell in OS X, however, so I don't know
what the problem is.
-Dave
*
* 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/
*
* 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/