annotate docs/shellplus/shellplus.doc @ 2445:6231225a182e

Updated with SetStat and GetStat op entry points
author boisy
date Fri, 26 Feb 2010 12:38:07 +0000
parents 054c318eda02
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1871
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
1 88/10/12 19:42 Shell+ V2.1 Page 001
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
2
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
3
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
4
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
5 Hacked Shell+ v2.1 Documentation
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
6 For L-II CoCo-3 Only
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
7
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
8 By: Ron Lammardo
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
9
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
10
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
11
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
12 BUG FIXES:
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
13
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
14 Will now unload (unlink) the correct name. Previously, if the module name
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
15 did not match the command filename you typed, shell would not unload the
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
16 module, and it would stick in memory until manually unlinked. This shell
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
17 reads in the actual module name and uses it instead of whatever was on
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
18 the command line. Example: "/d0/cmds/bob" will work correctly now: the
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
19 module name within the "bob" file will be the one to unload.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
20
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
21 To prevent attempted execution of a write-only device as a procedure file,
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
22 and to help with use of L-II window startup, this shell checks modes and
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
23 attempts write of a null to std out when shell starts up.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
24
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
25 You can redirect >>> to a write-only device. Before this, the shell would
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
26 open the path in UPDATE mode.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
27
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
28 The quote bug is fixed. That is, leaving off the second quote mark in lines
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
29 like - format /d0 r "Disk - will not crash the shell.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
30
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
31 The EX bug is fixed..if you type 'EX' with no parameters (to kill a shell)
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
32 it will not attempt to fork any module or return an error to the parent
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
33 process.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
34
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
35 Standard error path is now 'un-redirected ' after using a pipe.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
36
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
37
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
38
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
39 ADDITIONS:
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
40
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
41 NOBLOCK
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
42 -------
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
43
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
44 The shell now runs in what is commonly called 'No Block Mode'. Under previous
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
45 versions of shell / shell+ if you had a shell running on , say, T2 and you were
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
46 running on Term there was no convenient way to send messages back and forth. If
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
47 you did an 'echo whats new >/t2' from the Term it would wait around until
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
48 the other shell recieved keyboard input. While it was waiting, Term would be
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
49 hung up waiting for the echo command to complete. This problem was caused by
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
50 the other shell doing a read call, thereby 'blocking out' any other input.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
51
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
52 This release of Shell+ gets around that problem by putting itself to sleep
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
53 while waiting for keyboard input, allowing other input to get through &
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
54 display. Once the first key is hit for a line, the shell goes into its regular
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
55 read routine until the <ENTER> key is pressed.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
56
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
57 The noblock feature can be turned off by : modpatch <noblock.off.scr
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
58 and then saving the shell.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
59
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
60 It can be turned back on by : modpatch <noblock.on.scr
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
61 and then saving the shell.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
62
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
63
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
64 88/10/12 19:42 Shell+ V2.1 Page 002
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
65
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
66
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
67 EXECUTION DIR SCRIPTS
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
68 ---------------------
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
69
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
70 A favorite feature of preliminary shell+ users, this allows global shell
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
71 scripts to be placed in your execution (CMDS dir). Simply build or copy
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
72 a shell procedure file to your cmds dir, then set the execution permission
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
73 bits on it (attr script e pe). This makes it easy to add some commands
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
74 that you can access almost all the time.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
75
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
76 The shell search path becomes: memory, execution dir modules/scripts,
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
77 data dir scripts.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
78
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
79 Some people use this for printer setup cmds (using display >/p), others
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
80 use it with the IF/THEN/ELSE and GOTO commands to make sophisticated
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
81 procedures. I use it a lot for window commands, and program startups.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
82
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
83 For example, I have a script in my cmds dir called "fsm". It opens a VDG
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
84 screen on W6, and starts Flight Simulator. When I exit FS, it resets W6
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
85 back to a window type (all done in the background):
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
86
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
87 * FSM - Procedure Command File in CMDS that starts FS-II.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
88 xmode /w6 type=1; display c >/w6
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
89 chd /dd/games/fs
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
90 (fs <>>>/w6; xmode /w6 type=80)&
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
91
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
92
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
93 PROMPTS
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
94 -------
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
95
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
96 Settable and useful prompts. Ron had a great idea: why not add the device
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
97 name you're working from to the prompt ( OS9[T2]: )? Loved it, but everyone
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
98 liked different method of presentation. So added user-settable prompt:
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
99
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
100 p=prompt The prompt may be up to 21 chars, extra ignored.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
101 A space, return, or semicolon terminates the prompt.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
102 By putting the prompt in quotes, scan will continue
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
103 until second quote, return, or 21 chars is reached.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
104
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
105 Options include:
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
106 # - show shell's decimal proc id # (00-99).
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
107 @ - show device name current std out
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
108 $ - show current working directory
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
109 ( - show current date
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
110 ) - show current time
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
111
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
112 More than one #,@,$,(,) is ignored.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
113
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
114
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
115 Examples: Prompt Resulting:
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
116
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
117 p=OS9/@: OS9/Term:
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
118 p="Hi There!" Hi There!
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
119 p=OS.#.@: OS.06.T2:
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
120 p=$> /d0>
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
121 p=") [@]:" 18:30:14 [Term]:
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
122 p= <uses default setup in shell header>:
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
123
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
124
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
125
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
126
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
127 88/10/12 19:42 Shell+ V2.1 Page 003
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
128
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
129
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
130 Default prompt- stored starting from offset $003D in this shell. As it comes,
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
131 it's set to 'OS9[@]'. You may set using debug to something else. Terminate
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
132 your prompt with a $20 (blank). Offset $0054 is the longest you should go
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
133 before you run into the rest of the shell code. The longest settable
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
134 prompt will stop at $0051 anyway (21 chars worth).
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
135
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
136
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
137 It's easy to start up new shells with custom prompts. Just pass it as param.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
138 To start a shell on say, /W4 with a special prompt, you might type:
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
139
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
140 'shell p=OS9/@? i=/w4& ' ... results in shell on W4 with prompt 'OS9/W4?'
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
141
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
142 However, if you wish to use the # process id option as a shell parameter
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
143 like the above, then since #!&; etc normally means something special,
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
144 you must put the string in quotes, which are ignored by P=. Thus instead:
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
145
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
146 'shell p="Hello.#[@]" i=/w4& ' ... gives prompt of 'Hello.07[W4]'
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
147
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
148
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
149 PATH REDIRECTION
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
150 ----------------
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
151
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
152 z={path} - Same as i=/1 except that the parent process is killed. This would be
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
153 used in a shellscipt that does a chd,path=,or variable defining that
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
154 you want held over when the shellscript ends.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
155
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
156 r=[redirect chars]{path} - redirects the specified paths to the input path. All
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
157 allowable path mnemonics are supported : <, >, >>,
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
158 <>, <>>, <>>>, >>>
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
159
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
160
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
161
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
162 Examples:
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
163
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
164 r=>/w - redirects std out to next available window
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
165 r=<>>>/w - redirects std in,std out, std err to next available window
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
166 r=</h0/shellscript - redirects std in from /h0/shellscript. If the last
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
167 line in the file was 'i=/1' , the shellscript would end
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
168 with all settings preserved. This method is preferrable
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
169 to the 'z=' or 'GPERE' methods as it does not involve
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
170 forking any additional shells.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
171
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
172
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
173 MEMORY SCRIPTS
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
174 --------------
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
175
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
176 One of the big problems encountered by floppy disk users is 'where did I put
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
177 that shell script ?'. The shell will now allow a data module, either resident
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
178 in memory or from the execution directory (or from a full path list if
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
179 specified) to be executed as if it were a text file containing a shell script.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
180 Using this method, you could convert all your commonly used shellscripts to
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
181 data modules (See the DATAMOD utility) , pack them all into one file and load
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
182 during startup. This would allow access to all those shellscripts without
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
183 accessing the disk. And since shellscripts are generally very small, you should
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
184 be able to merge quite a few into an 8K block.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
185
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
186
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
187
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
188
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
189
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
190 88/10/12 19:42 Shell+ V2.1 Page 004
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
191
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
192
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
193 RUNB BASIC09 PARAMETER SETUP
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
194 ----------------------------
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
195
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
196 A common complaint, and perhaps the reason why more people don't write
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
197 packed Basic09 commands, is that Runb requires any passed parameters
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
198 to enclosed in parenthesis and quotes. For example, to execute a packed
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
199 command, you might have to type: cgp220sd ("/term","/p"). A royal pain.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
200
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
201 This shell recognizes packed procedures, and will do this automatically
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
202 for you. Using the same example, you can just type: cgp220sd /term /p .
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
203 The shell will still recognize parameters passed in the normal format:
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
204 cgp220sd ("/term","/p").
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
205
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
206 I expect this feature to allow the user to go nuts making packed basic09
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
207 custom commands. All parameters of course must be strings. If you need
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
208 to pass a number, simply take it in as a string and use the VAL command
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
209 to convert it to a number.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
210
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
211 Here's a quick and dirty program to pack. It allows you to see how things
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
212 are passed. Examples:
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
213
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
214 parmtest 1 2 3
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
215 parmtest hello kevin darling
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
216 parmtest only two
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
217 parmtest more than three params
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
218
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
219 ------------------------------------------
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
220
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
221 PROCEDURE ParmTest
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
222 PARAM a,b,c:STRING
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
223 DIM aa,bb,cc:STRING
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
224 ON ERROR GOTO 100
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
225 aa=a
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
226 PRINT "Param one=*"; aa; "*"
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
227 bb=b
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
228 PRINT "Param two=*"; bb; "*"
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
229 cc=c
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
230 PRINT "Param three=*"; cc; "*"
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
231 END
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
232 100 (* Come here on Param Error *)
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
233 PRINT "Less than three params given"
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
234 END
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
235
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
236 ------------------------------------------
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
237
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
238
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
239 LOGGING
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
240 -------
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
241
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
242 The logging feature is toggled by use of the L / -L commands. If logging is on
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
243 (default is off) , any non-comment line will be written to log file
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
244 /dd/log/uxxx where xxx is last 3 digits of userid prefixed by the date/time the
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
245 line was processed. In addition, a line will be written when a shell starts or
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
246 terminates (+++START+++ / +++END+++) .
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
247
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
248 Logging can be turned on permanently by : modpatch <loglock.on.scr
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
249 and then saving the shell. To turn it back off (and enable the L / -L
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
250 functions) use : modpatch <loglock.off.scr and then save the shell.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
251
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
252
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
253 88/10/12 19:42 Shell+ V2.1 Page 005
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
254
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
255
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
256 SHELL VARIABLES
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
257 ---------------
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
258
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
259 The shell now supports up to 10 shell variables of up to 80 characters long
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
260 each. These variables remain set as long as the shell is running, and can be
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
261 used as all or part of a shell command line. The variables are loaded by :
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
262
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
263 var.1 - accepts up to 80 chars from std err to load variable %1
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
264
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
265 var.="......." - loads %0 variable with data between quote characters
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
266
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
267
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
268 An example might be a shell script (or MEM script !) used to call the
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
269 assembler. Since most programs use the same standard commands, you could set
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
270 up a generic script and supply the input when run as in the following:
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
271
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
272
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
273 * Comp - generic assembler call file
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
274 prompt Program to ASM :
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
275 var.0
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
276 var.3="/dd/output"
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
277 t
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
278 asm #16k %0 L O=/dd/asm/obj/%0 >-%3
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
279 errchk <%3
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
280 unload %0
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
281 load /dd/asm/obj/%0
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
282
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
283 When this is run, the following output will be executed:
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
284
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
285 Program to ASM ? - displays on screen
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
286 testprog - user types in
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
287 asm #16k testprog L O=/dd/asm/obj/testprog >/dd/output
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
288 errchk </dd/output
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
289 unload testprog
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
290 load /dd/asm/obj/testprog
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
291
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
292
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
293 To view all current variables, enter 'var.?' on the command line to produce:
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
294
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
295 User Variables :
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
296 var.0=shell
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
297 var.1=
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
298 var.2=
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
299 var.3=/dd/output
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
300 .
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
301 .
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
302 var.9=
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
303
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
304 Shell Sub Variables :
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
305 var.0=
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
306 .
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
307 var.9=
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
308
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
309 To turn off variable expansion, use the '-V' option ('V' turns expansion on).
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
310 Note however that variable expansion is performed before a line is processed.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
311 So if you have a line like '-v prog "50%"' the % will still be expanded for
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
312 that line, but proceeding lines would not expand variables.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
313
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
314
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
315
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
316 88/10/12 19:42 Shell+ V2.1 Page 006
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
317
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
318
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
319 If a variable is referenced but not defined, no expansion takes place but the
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
320 %# is removed from the input line.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
321
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
322 As shown in the VAR.? example, there are two sets of variables. The first set,
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
323 the User Variables, can be set & examined by the user. The second set, the
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
324 Shell Sub Variables, can only be set by a ShellSub. These variables, however,
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
325 can be used to load User Variables by specifying them as %%# .
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
326
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
327 Example : The Sdate shellsub returns the month name in the first shellsub
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
328 variable. If we just want to display this on the current line we
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
329 could use :
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
330
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
331 echo The current month is %%0
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
332
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
333 Or to run something in a certain month :
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
334
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
335 IF %%0=July
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
336 THEN
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
337 .
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
338 .
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
339 ENDIF
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
340
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
341
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
342 There is one additional variable that can not be set by the user. The variable
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
343 '%*' will translate to the error code returned by the last line processed.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
344 This is extremly useful in conjunction with the on error command.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
345
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
346
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
347 INC. / DEC.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
348 -----------
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
349
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
350 Shell variables can be incremented / decremented by 1 using the inc.# / dec.#
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
351 commands. Result will be a 5 digit number, right justified and zero filled. If
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
352 you try to inc./dec. a variable containing a non-numeric field it will treat
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
353 the initial field as 00000 and act uppon it accordingly.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
354
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
355 Values can be in the range of 0 - 65535 rolling over in either direction. If
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
356 you attempt operations on a value > 65535 it will roll over.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
357
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
358 Examples :
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
359
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
360 var.0=1 sets to 1
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
361 inc.0 sets to 00002
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
362 dec.0 sets to 00001
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
363
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
364 var.8=002 sets to 002
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
365 dec.8 sets to 00001
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
366 dec.8 sets to 00000
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
367 dec.8 sets to 65535
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
368
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
369
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
370 PAUSE
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
371 -----
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
372
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
373 Pause will display a message than wait for key press or mouse click. The
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
374 message will be sent from the first non-space to the end of the line.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
375
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
376 Example : pause 'Hit any key when ready' <- displays & waits for key/mouse
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
377
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
378
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
379 88/10/12 19:42 Shell+ V2.1 Page 007
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
380
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
381
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
382 WILDCARDS
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
383 ---------
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
384
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
385 Seemed to be one of the most asked for enhancements , so here they are.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
386 Wildcard expansion is performed AFTER variable expansion but before any other
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
387 line checking is done. In order for wildcard expansion to take place the first
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
388 character on the line must be a colon (':'), otherwise the line will be
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
389 processed as is. This option can be reversed (: will prevent expansion) by:
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
390 modpatch <wild.on.scr
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
391 and then saving the shell. To restore back, use: modpatch <wild.off.scr
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
392 and then save the shell.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
393
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
394 The following characters are supported :
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
395
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
396 * - Matches any string of characters
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
397 ? - Matches any one character
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
398 [a-z] - Matches one character in the range within the brackets
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
399
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
400 Upper & lower case are treated equally - 'a*' matches ASM , aif.ctl , ...
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
401
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
402 To pass a wildcard character to a program,quote it by using the '\' chracter
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
403 immediately preceeding the desired chracter.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
404
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
405
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
406 Examples :
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
407
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
408 FSTAT * - runs FSTAT on every file in the current data dir
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
409 FSTAT [c-g]* - runs FSTAT on every file beginning with c thru g
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
410 FSTAT she* - runs FSTAT on every file starting with 'she'
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
411 FSTAT *.a - runs FSTAT on files starting ending with '.a'
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
412 LS a\* - passes 'a*' to LS for wildcard expansion
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
413
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
414 The expanded buffer size is 2048 characters. If the expanded line size is
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
415 greater than this, error #191 will be returned (Buffer size to small).
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
416
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
417 A utility program 'PARAM' is included in this archive (source and binary)
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
418 to reformat an expanded wilcard line. The program takes the parameter line
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
419 passed to it and writes it to standard out , one word per line (similar to the
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
420 LS command except that wilcard expansion is taking place in the shell).
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
421
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
422 Example : param she* <-- input
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
423 param shell shell.io <-- expanded to by shell
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
424
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
425 shell <-- output line from PARAM
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
426 shell.io <-- " "
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
427
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
428 If desired, this output could then be piped to a utility requring paramerters
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
429 passed one per line (e.g. - param * ! call "copy $ /d1/$"!shell).
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
430
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
431
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
432 OUTPUT APPEND AND OVERWRITE
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
433 ---------------------------
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
434
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
435 Similar to OS9/68000. Great for appending to logs or help files, or merging
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
436 modules. Or for using the same temporary filename by overwriting.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
437
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
438 >+filename - also >>+ and >>>+. Appends output to end of [filename].
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
439
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
440 >-filename - also >>- and >>>-. Overwrites contents of [filename].
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
441
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
442 88/10/12 19:42 Shell+ V2.1 Page 008
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
443
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
444
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
445 IF / THEN / ELSE / ENDIF / FI / CLRIF
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
446 -------------------------------------
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
447
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
448 Condition testing is supported as follows :
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
449
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
450 IF -Y - read one char from std err : y=TRUE, n=FALSE
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
451 IF -F <file> - TRUE if file exists and is a file
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
452 IF -R <file> - TRUE if file exists and is readable
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
453 IF -W <file> - TRUE if file exists and is writable
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
454 IF -E <file> - TRUE if file exists in execution directory
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
455 IF -D <file> - TRUE if file exists and is a directory
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
456
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
457 IF ....<condition>.... where <condition>
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
458 IF +###<condition>#### where <condition> is one of the following :
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
459
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
460 = - TRUE if left side is equal to right side
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
461 < - TRUE if left side is less than right side
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
462 > - True if left side is greater than right side
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
463 <= or =< - True if left side is less than or equal to right side
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
464 >= or => - True if left side is greater than or equal to right side
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
465
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
466 Without the + symbol in front,the two sides of the equation are compared
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
467 character by character from left to right,with any unused characters being
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
468 translated to nulls for comparison. If the + symbol is present, the two sides
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
469 of the equation are right justified and zero filled, allowing for accurate
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
470 numeric condition testing. If either side of the equation is greater than 80
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
471 characters or the test condition is missing , the command will error. Note that
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
472 if error exit is turned off (by the -X command) processing will continue on the
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
473 next line as if the IF statement was true.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
474
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
475 Examples:
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
476 if a=b false if a=b false
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
477 if a<=b true if a<>b true
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
478 if hello=HellO true if what=what? false
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
479 if what<=what? true if what<>what? true
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
480 if 09<010 false if 09>010 true
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
481 if +09<010 true if +09>010 false
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
482
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
483 If a condition is true, following lines will be processed until an optional
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
484 ELSE is encountered. Lines will be skipped until a ENDIF or FI is encountered.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
485
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
486 If a condition is false, following lines will be skipped until an ELSE , ENDIF
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
487 or FI is encountered.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
488
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
489 The reserved word CLRIF can be used to clear any IF in effect, even if lines
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
490 are to be skipped because of a false condition or between ELSE/ENDIF for a
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
491 true condition.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
492
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
493 If the input line echo option is on ('T'), the word TRUE or FALSE will be
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
494 printing following the if statement depending on how the statement evaluates.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
495
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
496 The condition being tested may be placed in brackets (e.g. - if [ -y ] ) to
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
497 maintain compatability with existing IF utilities.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
498
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
499 IF statements can be nested up to 255 deep. The word THEN is optional and will
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
500 be ignored if present.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
501
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
502
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
503
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
504
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
505 88/10/12 19:42 Shell+ V2.1 Page 009
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
506
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
507
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
508 GOTO
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
509 ----
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
510
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
511 Goto [label] - searches for label from the beginning of the file.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
512 Goto [+label] - searches for label from current file position on.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
513
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
514 Label must be an alphanumeric word (up to 40 characters) and must immediatly
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
515 follow a '*' comment marker. Label must exactly match the label on the goto
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
516 line (upper & lower case are unique).
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
517
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
518 If a line contains '*\' as the first two characters, any goto in effect will
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
519 be cancelled with processing continuing on the line following.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
520
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
521
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
522 ONERR GOTO
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
523 ----------
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
524
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
525 Onerr goto [label]
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
526 Onerr goto [+label]
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
527
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
528 Same as GOTO except that it does not execute until a command errors. After the
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
529 error, the GOTO command specified is performed. Note that while executing a
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
530 GOTO, the error variable ('%*') is not updated, allowing for error
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
531 identification at the goto label.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
532
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
533 Entering ONERR alone on a line causes the on error trap to be cancelled.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
534
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
535 As with the goto command, '*\' causes the goto to be cancelled.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
536
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
537 Example:
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
538
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
539 onerr goto lab1
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
540 dir sd <---- errors with #216
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
541 pmap <---- not executed
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
542 mmap <---- not executed
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
543 *lab1 <---- label matched
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
544 if %*=216 <----- expands to 'if 216=216' which evaluates true
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
545 goto lab2 <----- jumps to label lab2
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
546 else <----- ignored because condition was true
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
547 echo ERROR <----- " "
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
548 endif <----- tells shell o.k. to process lines again
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
549 smap <----- ignored cause we're going to lab2
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
550 *lab2 <----- found
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
551 ..... <----- processing continues here
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
552
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
553
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
554
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
555
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
556 PATH=
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
557 -----
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
558
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
559 Path= allows you to specify alternate directorys to search for commands. If the
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
560 current execution directory does not contain the desired module, the alternate
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
561 paths will be searched in the order specified. This is especially useful for
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
562 floppy disk users with limited space, as it allows you to have your CMDS
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
563 directory spread across 2 or more disks. The specified paths are retained when
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
564 subshells are forked, either by directly calling the shell (shell i=/w&) or by
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
565 running a shellscript/memscript.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
566
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
567
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
568 88/10/12 19:42 Shell+ V2.1 Page 010
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
569
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
570
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
571 Pathlists must be separated by spaces only. To clear alternate paths, type
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
572 'path=' with no parameters.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
573
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
574 To display the currently assigned paths, use 'path=?' .
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
575
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
576 Example:
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
577
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
578 path=/d1/cmds /d2/cmds /d2/newcmds
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
579
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
580 path=? <** produces
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
581 /d1/cmds
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
582 /d2/cmds
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
583 /d2/newcmds
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
584
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
585
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
586 SECURITY
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
587 --------
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
588
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
589 If the userid is not 0, any '@' characters will be stripped out to prevent
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
590 os9 security being overriden by being able to dump a disk. The potential
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
591 problem with prompt setting (@=device name) is taken care of by allowing an
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
592 [alt]@ to be accepted in addition to '@'.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
593
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
594 If this feature is undesirable, it can be removed by
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
595 'modpatch <atcheck.off.scr' and then saving the shell. It can be turned on
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
596 again by 'modpatch <atcheck.on.scr' and saving.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
597
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
598
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
599 SHELL SUBS
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
600 ----------
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
601
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
602 A new type of module is supported by this release of Shell+ - the ShellSub
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
603 module. These modules are asm subroutines which pass data back to the shell
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
604 in the 10 reserved shell sub variables (%%0 - %%9). For instance, the Sdate
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
605 shellsub (included in this archive) returns the current month name and
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
606 year,month,day,hours,minues,seconds all in separate variables. These variables
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
607 can then be examined and acted upon by the shell (possibly for displaying or
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
608 IF/THEN/ELSE testing). Note again that the shell sub variables can NOT be
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
609 modified by the user, only by shell subroutines. They can, however, be loaded
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
610 into the regular user variable set for manipulation.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
611
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
612 Technical notes :
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
613 When the shell determines that a ShellSub is to be run (by a $51 in the
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
614 Type/Language byte in the module header) it loads the registers in a
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
615 manner similar to those used when forking a module :
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
616
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
617 X - parameter area start
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
618 D - parameter area size
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
619 Y - subroutine entry point
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
620 U - first ShellSub buffer
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
621
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
622 It is the responsibility of the shellsub to ensure that each variable
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
623 ends with a <cr> and start at the correct locations (10 variables of 81
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
624 bytes each). The shellsub must also end with an rts to return control
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
625 back to the shell. The shellsub is therefore also responsible for
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
626 ensuring that the stack points to the same place at exit as it did upon
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
627 entrance. The shell has about 750 bytes available for stack use. All
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
628 registers used by the shell are saved before calling the shellsub &
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
629 restored after the shellsub returns.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
630
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
631 88/10/12 19:42 Shell+ V2.1 Page 011
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
632
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
633
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
634 USER STARTUP FILE EXECUTION
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
635 ---------------------------
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
636
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
637 The reserved word 'S.T.A.R.T.U.P' will cause the shell to attempt running a
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
638 file called 'startup' in the CURRENT directory. This is very useful when
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
639 running Tsmon/Login and you are changing the users working directory. If the
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
640 users directory is changed and then the program forked is 'shell s.t.a.r.t.u.p'
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
641 the shell will try to run a startup file in the new directory and then remain
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
642 active. If no startup file is present, no error is returned.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
643
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
644
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
645 MISC
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
646 ----
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
647
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
648 A command called PROMPT is included in this archive. It functions the same as
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
649 the ECHO command except that it does not do a linefeed after displaying the
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
650 line. See the example script under SHELL VARIABLES.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
651
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
652 Also included in the archive is a shellscript called SHELLSCRIPT. This is what
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
653 I use to assemble the various versions of Shell+. It is included as an example
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
654 of variables,goto and if/then/else use. It is NOT needed to install or use
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
655 Shell+.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
656
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
657 You may modify the priority of commands using the "^" (up carat) symbol.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
658 Example: list file >/p ^100 &
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
659
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
660 Since all the coding for PWD/PXD is part of the shell for the $ option on
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
661 prompt setting, the commands .PWD and .PXD are included with the shell. Once
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
662 you do a .PWD or .PXD the directory will be kept in a buffer so that next time
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
663 you execute the command it won't have to check the disk. It will also stay in
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
664 the buffer if the $ option is used in the prompt. Note that if a pathlist is
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
665 over 129 chars long, it will be printed prefixed with an '*', indicating that
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
666 the beginning of the pathlist has not been printed. This also applies when
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
667 using the working directory as part of the shell prompt. Note : Even if you
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
668 use the .PWD/.PXD functions you should keep those commands in your execution
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
669 directory, as other programs (notably basic09 routines) may use the shell to
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
670 get the current directorys. It is for this reason that the commands are
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
671 prefixed with a '.' .
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
672
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
673 CD and CX are also allowed for CHD and CHX for Nuxi people. Also '|' allowed
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
674 along with '!' as pipe character.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
675
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
676 Echoed input lines ('T' option) will now display the full input line. Why
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
677 print only 80 chars if the input buffer is 200 ?
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
678
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
679 All modules are now forked with a minimum of 7936 bytes (8k - 1 page) to
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
680 handle the greatly expanded parameter line size. If the module needs > 8k or
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
681 a memory modifier > 8k (#16k) is specified, that size will be used.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
682
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
683
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
684 If you find any bugs, please let Ron Lammardo (75706,336) know through the CIS
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
685 OS9 forum, so that we can take care of them. Suggestions, bitches and kudos
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
686 appreciated also.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
687
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
688
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
689
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
690
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
691
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
692
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
693
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
694 88/10/12 19:42 Shell+ V2.1 Page 012
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
695
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
696
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
697 Some of the enhancements in Shell+ came either directly from or were derived
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
698 from existing utilities. The ones I can remember are :
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
699
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
700 Goto - Kevin Darling
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
701 Z= - from GPERE by Kent Meyers
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
702 Wildcards - Simmule Turner
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
703 NOBLOCK - Kent Meyers
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
704 Logging - Karl Krieder
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
705
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
706 Shell+ Release 1.0 by Kent Meyers
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
707 Shell+ Release 1.1 by Kent Meyers,Kevin Darling,Ron Lammardo
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
708
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
709
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
710 V2.0 additions/changes
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
711 -----------------------
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
712
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
713 - Current date/time displayed when shell starts
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
714
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
715 - Current date / time can be used as all or part of the shell prompt.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
716
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
717 - Standard error redirection return fixed for pipes / EX bug fixed
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
718
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
719 - Memory scripts
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
720
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
721 - Shell Variables (VAR.# , %# , %*, VAR.? , V , -V ) / INC. / DEC.
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
722
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
723 - PATH= command (PATH=?) / PAUSE command
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
724
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
725 - IF / THEN / ELSE / ENDIF / FI / CLRIF
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
726
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
727 - GOTO / ONERR GOTO / *\
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
728
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
729 - Wildcarding
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
730
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
731 - Path redirection (Z= , R=)
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
732
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
733 - @ removal for users other than user 0 / Logging (L / -L)
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
734
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
735 - Shell Subs (%%#)
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
736
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
737 - User Startup execution
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
738
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
739
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
740 V2.1 additions/changes
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
741 -----------------------
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
742
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
743 - Wildcard Quoting ('\' as escape character)
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
744
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
745 - Wildcarding rewritten (fix comment line errors,upper/lower match,range)
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
746
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
747 - Packed BASIC09 memory size error fixed
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
748
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
749 - Large parameter line into shell fixed
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
750
054c318eda02 Added for future incorporation into NitrOS-9 Manual
boisy
parents:
diff changeset
751