>>10These example files illustrate some of the differences between Command and Obey files:
Example 1
*BASIC
AUTO
FOR J= 1 TO 10
PRINT "Hello"
NEXT J
END
If this is a command file, it will enter the BASIC interpreter, and input the file shown. The command script will end with the BASIC interpreter waiting for another line of input. You can then press Esc to get a prompt, type RUN to run the program, and then type QUIT to leave BASIC. This script shows how a command file is passed to the input, and can change what is accepting its input (in this case to the BASIC interpreter).
On the other hand, if this is an Obey file it will be passed to the command line interpreter, and an attempt will be made to run these commands:
*BASIC
*AUTO
*FOR I = 1 TO 10
* PRINT "Hello"
*NEXT I
*END
Only the first command is valid, as an Obey file all this does is to leave you in the BASIC interpreter. Type QUIT to leave BASIC; you will then get an error message saying File 'AUTO' not found, generated by the second line in the file.