REBOL3 tracker
  0.9.12 beta
Ticket #0001735 User: anonymous

Project:



rss
TypeBug Statuscomplete Date31-Oct-2010 15:34
Versionalpha 109 CategoryUnspecified Submitted byabolka
PlatformAll Severityminor Prioritynormal

Summary When running a script with the --cgi flag, the interpreter does not quit automatically
Description When running a script without the cgi flag, the interpreter quits automatically after the script "completes".

When running a script with the cgi flag, the interpreter does not quit but drop to the console after the script "completes".

A temporary workaround is to have an explicit QUIT/now in the CGI. But given that the console is particularly useless in a CGI, there is no good reason for this deviation in behaviour, so running with the cgi flag should be fixed to also quit like for "normal" scripts.
Example code
$ cat foo.r 
REBOL []
print 42

$ rebol3 -q foo.r 
42
$ # GOOD: we're back at the shell

$ rebol3 -qc foo.r 
42
>> ; BAD: we're still in rebol

Assigned ton/a Fixed inalpha 110 Last Update23-Dec-2012 12:19


Comments

Date User Field Action Change
23-Dec-2012 12:19 abolka Status Modified tested => complete
2-Nov-2010 19:07 abolka Status Modified built => tested
1-Nov-2010 04:44 carl Fixedin Modified => alpha 110
1-Nov-2010 04:44 carl Status Modified reviewed => built
1-Nov-2010 00:08 carl Status Modified submitted => reviewed
31-Oct-2010 15:53 abolka Description Modified -
31-Oct-2010 15:53 abolka Code Modified -
31-Oct-2010 15:34 abolka Ticket Added -