ravikumar10 / genyris

Automatically exported from code.google.com/p/genyris
Other
0 stars 0 forks source link

-eval option returns non-zero status to operating system. #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

C:\workspace>java -Xmx256M -cp "c:\workspace\genyris-build\dist\*" 
org.genyris.interp.ClassicReadEvalPrintLoop -eval "(ps)"
dict (.id = 1)
            .name = 'main'
            .state = 'RUNNABLE' # Pair

What do you see?

C:\workspace>echo %errorlevel%
1

What is the expected output?

C:\workspace>echo %errorlevel%
0

Original issue reported on code.google.com by birchb1...@gmail.com on 8 Aug 2011 at 7:25

GoogleCodeExporter commented 9 years ago
The documentation is wrong. "If the return value of the expression is printed, 
the process exits with a 0 status, otherwise 1. " Should say "If the return 
value of the expression is nil, the process exits with a 0 status, otherwise 1. 
"

Original comment by birchb1...@gmail.com on 8 Aug 2011 at 7:29

GoogleCodeExporter commented 9 years ago
Workaround is 
  genyris -eval "(do (ps) nil)"
or similar.

Original comment by birchb1...@gmail.com on 8 Aug 2011 at 7:31

GoogleCodeExporter commented 9 years ago
Documentation fixed in 824:1ce681cfe64c

Original comment by birchb1...@gmail.com on 24 Nov 2011 at 11:39

GoogleCodeExporter commented 9 years ago

Original comment by birchb1...@gmail.com on 24 Nov 2011 at 11:39

GoogleCodeExporter commented 9 years ago

Original comment by birchb1...@gmail.com on 3 Apr 2013 at 1:37