You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/basic-ref.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,7 @@
106
106
</li>
107
107
<li><b>Sequential execution.</b> Programs execute line by line, top to bottom, unless redirected with control statements (e.g. <spanclass="tt">GOTO</span>, <spanclass="tt">IF</span>, <spanclass="tt">PROC</span>, <spanclass="tt">FUNCTION</span>).</li>
108
108
<li><b>Statements.</b> Each line must contain at least one valid statement, with any required parameters.</li>
109
-
<li><b>Variables.</b> Four types of variables are available (see <aclass="el" href="variables.html">Variable Types</a>). Variables may be:<ul>
109
+
<li><b>Variables.</b> Four types of variables are available (see <aclass="el" href="rocketsh.html#variables">Variables</a>). Variables may be:<ul>
110
110
<li><b>Local</b> to the current program, or</li>
111
111
<li><b>Inherited</b> by other programs run with <spanclass="tt">CHAIN</span> or similar mechanisms.</li>
<p>The <spanclass="tt">PATH$</span> variable is a list of directories that are searched for programs to run them. Each path in PATH$ (separated by semicolons, ';') is prepended to the command line to try and match a file. If a match is found by prepending this search path, the program is executed. So for example if your program is located at <spanclass="tt">/programs/tasks/foo</span> and you type <spanclass="tt">tasks/foo</span>, with the path containing <spanclass="tt">/programs</span>, the program will be found and ran. Note this is slightly different from how paths operate in other operating systems. The current directory cannot be included in the path as it has no direct representation.</p>
183
+
<p>If you want to run a program that is not in the path, you must provide the full path to the program from the file system root.</p>
<p>This is the path where system libraries may be found. There can be only one active library path. Programs may optionally use this global variable when loading their libraries, but it is not mandatory to do so, for example if a program wishes to load its own libraries from some non-standard location.</p>
<p>Changing the <spanclass="tt">PROMPT$</span> variable changes the displayed prompt of the shell to whatever you want. By default, <spanclass="tt">PROMPT$</span> has the value <spanclass="tt">"ROCKETSH"</span>. Changing <spanclass="tt">PROMPT$</span> to an empty string will cause it to display just <spanclass="tt">></span>, like the BBC Micro. </p>
['like_20a_20phone_20call_20reliable_20conversation_26',['TCP - Like a Phone Call (reliable conversation)',['../networking.html#tcp---like-a-phone-call-reliable-conversation',1,'']]],
['like_20sending_20a_20parcel_20quick_20independent_20messages_28',['UDP - Like Sending a Parcel (quick, independent messages)',['../networking.html#udp---like-sending-a-parcel-quick-independent-messages',1,'']]],
32
-
['line_20endings_29',['Separators and line endings',['../PRINT.html#separators-and-line-endings',1,'']]],
33
-
['line_20entry_30',['Command line entry',['../rocketsh.html#command-line-entry',1,'']]],
['line_20numbering_20auto_20number_20and_20execution_32',['Line numbering, auto-number, and execution',['../basic-intdev.html#line-numbering-auto-number-and-execution',1,'']]],
['load_20newline_20separated_20integers_20from_20a_20file_51',['Example: load newline-separated integers from a file',['../DATA.html#example-load-newline-separated-integers-from-a-file',1,'']]],
['logo_20and_20system_20info_20scrolling_20with_20text_58',['Example: Keep a logo and system info scrolling with text',['../SCROLLREGION.html#example-keep-a-logo-and-system-info-scrolling-with-text',1,'']]],
['like_20a_20phone_20call_20reliable_20conversation_27',['TCP - Like a Phone Call (reliable conversation)',['../networking.html#tcp---like-a-phone-call-reliable-conversation',1,'']]],
['like_20sending_20a_20parcel_20quick_20independent_20messages_29',['UDP - Like Sending a Parcel (quick, independent messages)',['../networking.html#udp---like-sending-a-parcel-quick-independent-messages',1,'']]],
33
+
['line_20endings_30',['Separators and line endings',['../PRINT.html#separators-and-line-endings',1,'']]],
34
+
['line_20entry_31',['Command line entry',['../rocketsh.html#command-line-entry',1,'']]],
['line_20numbering_20auto_20number_20and_20execution_33',['Line numbering, auto-number, and execution',['../basic-intdev.html#line-numbering-auto-number-and-execution',1,'']]],
['load_20newline_20separated_20integers_20from_20a_20file_52',['Example: load newline-separated integers from a file',['../DATA.html#example-load-newline-separated-integers-from-a-file',1,'']]],
['logo_20and_20system_20info_20scrolling_20with_20text_59',['Example: Keep a logo and system info scrolling with text',['../SCROLLREGION.html#example-keep-a-logo-and-system-info-scrolling-with-text',1,'']]],
0 commit comments