Ignoring the cgi problem for a moment, consider the following terminal
transcript:
Script started on Tue Jan 18 23:08:46 2000
jbone@bastrop> ls -al reb.r
-rwxr-xr-x 1 jbone jbone 176 Jan 18 23:07 reb.r*
jbone@bastrop> cat reb.r
#!/usr/local/bin/rebol
REBOL [
Title: "reb"
File: %reb.r
Purpose: {
Test rebol shell invocation.
}
]
print "Hello, rebol"
jbone@bastrop> ./reb.r
REBOL 2.2.0.4.2
Copyright (C) 1998-1999 REBOL Technologies
REBOL is a Trademark of REBOL Technologies
All rights reserved.
Finger protocol loaded
Whois protocol loaded
Daytime protocol loaded
SMTP protocol loaded
POP protocol loaded
HTTP protocol loaded
FTP protocol loaded
NNTP protocol loaded
>> quit
jbone@bastrop>exit
Script done on Tue Jan 18 23:09:20 2000
--
Note that Rebol did not do the expected, i.e. read and run the script
contained in the file. Rather, it initialized the interpreter and went into
read-eval-print interactive mode; the "quit" at the prompt had to be typed
interactively to exit the interpreter's REPL loop. Surely this is
incorrect, right?
jb