Open GoogleCodeExporter opened 9 years ago
sorry for the long session print-out. (I did not see the previous log entries
before)
Original comment by hfcul...@gmail.com
on 3 Nov 2012 at 5:33
The commands documented by "help" are commands handled by a Soar agent. "quit"
and "exit" are not handled because it doesn't make sense to quit or exit an
agent object instantiated in a program, only the program itself. cli.exe is a
simple wrapper around an agent object that forwards most commands to it (via
agent->ExecuteCommandLine()), but it has a special case for "exit" to stop its
own execution. The incorrect handling of "exit" in cli -s is an oversight on my
part, and I'll fix this for the next release. In the meantime you can work
around it by redirecting standard input instead of using the -s flag:
cli <C:/Soar/SoarWin64/bin/xsrc1.txt
This makes cli behave as if you were typing each line from xsrc1.txt into its
prompt. You don't need an explicit "exit" in the script in this case. Windows
will close cli's standard input when the end of the script is reached, and cli
will exit automatically.
Original comment by joseph...@gmail.com
on 3 Nov 2012 at 9:20
Thanks for the assist!
Original comment by hfcul...@gmail.com
on 4 Nov 2012 at 3:36
Original issue reported on code.google.com by
hfcul...@gmail.com
on 3 Nov 2012 at 5:31