In Windows 10 with Stata 16 if I log in as "admin" and issue the Stata command -pwd- Stata returns directory name c:\users\admin\documents and if I issue a plain -dir- command it returns the contents of that directory. That is as expected. But
returns nothing. This is in contrast to the behavior Linux and OSX Stata, which return the contents of the current directory for both -dir- and -! ls-.
This seems to be a problem with standard out in Stata for Windows,
also returns a blank line in WIndows, but the expected "asdf" in Linux and OSX. These are all new installs of Stata, so I am inclined to discount a local configuration issue. I don't recall this happening in the past, but I rarely used Windows Stata, so it may not be new behavior. Is there a general way around it? I ask because I have my own programs that write to standard output - I have no particular interest in echo, dir or ls, they are just examples to show the issue simply.
All this is in interactive mode, which brings up a smaller difference between Windows Stata and the other versions. After returning from a shell out the focus is not on the command window in WIndows, but it is on the command window in Linux or OSX. That is more convenient - it avoids a mouse click.before the next command.
0 Response to Standard output lost
Post a Comment