Removed debugging statement and added comments to the duplicate check
[mmh] / docs / historical / mh-6.8.5 / conf / doc / RCS / msh.rf,v
1 head    1.9;
2 access;
3 symbols;
4 locks; strict;
5
6
7 1.9
8 date    92.10.16.21.36.14;      author jromine; state Exp;
9 branches;
10 next    1.8;
11
12 1.8
13 date    90.04.05.15.13.40;      author sources; state Exp;
14 branches;
15 next    1.7;
16
17 1.7
18 date    90.03.23.15.29.58;      author sources; state Exp;
19 branches;
20 next    1.6;
21
22 1.6
23 date    90.03.23.14.17.37;      author sources; state Exp;
24 branches;
25 next    1.5;
26
27 1.5
28 date    90.03.22.19.46.39;      author sources; state Exp;
29 branches;
30 next    1.4;
31
32 1.4
33 date    90.03.22.11.31.30;      author sources; state Exp;
34 branches;
35 next    1.3;
36
37 1.3
38 date    90.03.20.19.42.09;      author sources; state Exp;
39 branches;
40 next    1.2;
41
42 1.2
43 date    90.03.20.17.36.27;      author sources; state Exp;
44 branches;
45 next    1.1;
46
47 1.1
48 date    90.03.20.17.21.10;      author sources; state Exp;
49 branches;
50 next    ;
51
52
53 desc
54 @@
55
56
57 1.9
58 log
59 @MIME changes
60 @
61 text
62 @.\"    @@(MHWARNING)
63 .\" @@(#)$Id: msh.rf,v 1.8 1990/04/05 15:13:40 sources Exp jromine $
64 .SC MSH 1
65 .NA
66 msh \- MH shell (and BBoard reader)
67 .SY
68 msh
69 \%[\-prompt\ string]
70 \%[\-scan] \%[\-noscan]
71 \%[\-topcur] \%[\-notopcur]
72 \%[file]
73 \%[\-help]
74 .DE
75 \fImsh\fR is an interactive program that
76 implements a subset of the normal \fIMH\fR commands
77 operating on a single file in \fIpackf\fR'd format.
78 That is, \fImsh\fR is used to read a file that contains a number of
79 messages,
80 as opposed to the standard
81 \fIMH\fR
82 style of reading a number of files,
83 each file being a separate message in a folder.
84 \fImsh\fR's chief advantage is that the normal \fIMH\fR style does not allow
85 a file to have more than one message in it.
86 Hence, \fImsh\fR is ideal for reading \fIBBoards\fR,
87 as these files are delivered by the transport system in this format.
88 In addition, \fImsh\fR can be used on other files,
89 such as message archives which have been \fIpack\fRed (see \fIpackf\fR\0(1)).
90 Finally, \fImsh\fR is an excellent \fIMH\fR
91 tutor.
92 As the only commands available to the user are \fIMH\fR commands,
93 this allows \fIMH\fR beginners to concentrate on how commands to
94 \fIMH\fR are formed and (more or less) what they mean.
95
96 When invoked, \fImsh\fR reads the named file, and enters a command loop.
97 The user may type most of the normal
98 \fIMH\fR
99 commands.
100 The syntax and semantics of these commands typed to \fImsh\fR are
101 identical to their \fIMH\fR
102 counterparts.  In cases where the nature of \fImsh\fR would be inconsistent
103 (e.g., specifying a `+folder' with some commands),
104 \fImsh\fR will duly inform the user.
105 The commands that \fImsh\fR currently supports
106 (in some slightly modified or restricted forms) are:
107 .sp 1
108 .in +.5i
109 ali
110 .br
111 burst
112 .br
113 comp
114 .br
115 dist
116 .br
117 folder
118 .br
119 forw
120 .br
121 inc
122 .br
123 mark
124 .br
125 mhmail
126 .br
127 @@BEGIN: MIME
128 mhn
129 .br
130 @@END: MIME
131 msgchk
132 .br
133 next
134 .br
135 packf
136 .br
137 pick
138 .br
139 prev
140 .br
141 refile
142 .br
143 repl
144 .br
145 rmm
146 .br
147 scan
148 .br
149 send
150 .br
151 show
152 .br
153 sortm
154 .br
155 whatnow
156 .br
157 whom
158 .in -.5i
159
160 In addition,
161 \fImsh\fR has a \*(lqhelp\*(rq command which gives a brief overview.
162 To terminate \fImsh\fR, type CTRL\-D, or use the \*(lqquit\*(rq command.
163 If \fImsh\fR is being invoked from \fIbbc\fR,
164 then typing CTRL\-D will also tell \fIbbc\fR to exit as well,
165 while using the \*(lqquit\*(rq command will return control to \fIbbc\fR,
166 and \fIbbc\fR will continue examining the list of BBoards
167 that it is scanning.
168
169 If the file is writable and has been modified,
170 then using \*(lqquit\*(rq will query the user if the file should be updated.
171
172 The `\-prompt string' switch sets the prompting string for \fImsh\fR.
173
174 You may wish to use an alternate \fIMH\fR profile for the commands that
175 \fImsh\fR executes;
176 see \fImh-profile\fR\0(5) for details about the \fB$MH\fR envariable.
177
178 When invoked from \fIbbc\fR,
179 two special features are enabled:
180 First,
181 the `\-scan' switch directs \fImsh\fR to do a `scan\0unseen' on
182 start\-up if new items are present in the BBoard.
183 This feature is best used from \fIbbc\fR,
184 which correctly sets the stage.
185 Second,
186 the \fImark\fR command in \fImsh\fR acts specially when you are reading
187 a BBoard,
188 since \fImsh\fR will consult the sequence \*(lqunseen\*(rq in determining
189 what messages you have actually read.
190 When \fImsh\fR exits, it reports this information to \fIbbc\fR.
191 In addition, if you give the \fImark\fR command with no arguments,
192 \fImsh\fR will interpret it
193 as `mark\0\-sequence\0unseen\0\-delete\0\-nozero\0all'
194 Hence, to discard all of the messages in the current BBoard you're
195 reading, just use the \fImark\fR command with no arguments.
196
197 Normally, the \*(lqexit\*(rq command is identical to the \*(lqquit\*(rq
198 command in \fImsh\fR.
199 When run under \fIbbc\fR however, \*(lqexit\*(rq directs \fImsh\fR to mark
200 all messages as seen and then \*(lqquit\*(rq.
201 For speedy type\-in,
202 this command is often abbreviated as just \*(lqe\*(rq.
203
204 When invoked from \fIvmh\fR,
205 another special feature is enabled:
206 The `topcur' switch directs \fImsh\fR to have the current message
207 \*(lqtrack\*(rq the top line of the \fIvmh\fR scan window.
208 Normally, \fImsh\fR has the current message \*(lqtrack\*(rq the center of the
209 window (under `\-notopcur', which is the default).
210
211 \fImsh\fR supports an output redirection facility.
212 Commands may be followed by one of
213
214 .nf
215 .in +.5i
216 .ta \w'| \fIcommand\fR  'u
217 ^> \fIfile\fR~^write output to \fIfile\fR
218 ^>> \fIfile\fR~^append output to \fIfile\fR
219 ^| \fIcommand\fR~^pipe output to UNIX \fIcommand\fR
220 .re
221 .in -.5i
222 .fi
223
224 If \fIfile\fR starts with a `\~' (tilde),
225 then a \fIcsh\fR-like expansion takes place.
226 Note that \fIcommand\fR is interpreted by \fIsh\fR\0(1).
227 Also note that \fImsh\fR does NOT support
228 history substitutions, variable substitutions, or alias substitutions.
229
230 When parsing commands to the left of any redirection symbol,
231 \fImsh\fR will honor `\\' (back\-slash) as the quote next\-character symbol,
232 and `"' (double\-quote) as quote\-word delimiters.
233 All other input tokens are separated by whitespace
234 (spaces and tabs).
235 .Fi
236 ^$HOME/\&.mh\(ruprofile~^The user profile
237 ^@@(MHETCPATH)/mtstailor~^tailor file
238 .Pr
239 ^Path:~^To determine the user's MH directory
240 .Ps
241 ^Msg\-Protect:~^To set mode when creating a new `file'
242 .Ps
243 ^fileproc:~^Program to file messages
244 .Ps
245 ^showproc:~^Program to show messages
246 .Sa
247 bbc(1)
248 .De
249 `file' defaults to \*(lq./msgbox\*(rq
250 .Ds
251 `\-prompt\ (msh)\ '
252 .Ds
253 `\-noscan'
254 .Ds
255 `\-notopcur'
256 .Co
257 None
258 .Bu
259 The argument to the `\-prompt' switch must be interpreted as a single token
260 by the shell that invokes \fImsh\fR.
261 Therefore,
262 one must usually place the argument to this switch inside double\-quotes.
263
264 There is a strict limit of messages per file in \fIpackf\fR'd format which
265 \fImsh\fR can handle.
266 Usually, this limit is 1000 messages.
267
268 Please remember that \fImsh\fR is not the \fICShell\fR,
269 and that a lot of the nice facilities provided by the latter are not
270 present in the former.
271
272 In particular, \fImsh\fR does not understand back\-quoting,
273 so the only effective way to use \fIpick\fR inside \fImsh\fR is to always use
274 the `\-seq\0select' switch.
275 Clever users of \fIMH\fR will put the line
276
277 .ti +.5i
278 pick:\0\-seq\0select\0\-list
279
280 in their \&.mh\(ruprofile file so that \fIpick\fR works equally well from
281 both the shell and \fImsh\fR.
282
283 \fIsortm\fR always uses \*(lq\-noverbose\*(rq and
284 if \*(lq\-textfield\ field\*(lq is used, \*(lq\-limit 0\*(rq.
285
286 The \fImsh\fR program inherits most (if not all) of the bugs from the
287 \fIMH\fR commands it implements.
288 .En
289 @
290
291
292 1.8
293 log
294 @add ID
295 @
296 text
297 @d2 1
298 a2 1
299 .\" @@(#)$Id:$
300 d66 4
301 @
302
303
304 1.7
305 log
306 @typo
307 @
308 text
309 @d2 1
310 @
311
312
313 1.6
314 log
315 @fix
316 @
317 text
318 @d1 1
319 a1 1
320 \"      @@(MHWARNING)
321 @
322
323
324 1.5
325 log
326 @document sortm defieciencies
327 @
328 text
329 @d1 1
330 a1 1
331 .\"     @@(MHWARNING)
332 d217 2
333 a218 2
334 \fIsortm\fR switches \*(lq\-\[no\]verbose\*(rq and  \*(lq\-\[no\]limit\*(rq
335 are unimplemented.
336 @
337
338
339 1.4
340 log
341 @put things back, do .NA stuff another way
342 @
343 text
344 @d217 3
345 @
346
347
348 1.3
349 log
350 @typo
351 @
352 text
353 @d2 2
354 a3 2
355 .TH MSH 1 @@(MHCENTERFOOT) @@(MHLEFTFOOT)
356 .SH .NA
357 d5 1
358 a5 1
359 .SH .SY
360 @
361
362
363 1.2
364 log
365 @fixup for makewhatis
366 @
367 text
368 @d2 1
369 a2 1
370 .TH MSH 1 [mh.6] MH
371 @
372
373
374 1.1
375 log
376 @Initial revision
377 @
378 text
379 @d2 2
380 a3 2
381 .SC MSH 1
382 .NA
383 d5 1
384 a5 1
385 .SY
386 @