1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265
|
.TH MSH %manext1% "January 26, 2013" "%nmhversion%"
.\"
.\" %nmhwarning%
.\"
.SH NAME
msh \- nmh shell (and BBoard reader)
.SH SYNOPSIS
.HP 5
.na
.B msh
.RB [ \-prompt
.IR string ]
.RB [ \-scan " | " \-noscan ]
.RB [ \-topcur " | " \-notopcur ]
.RI [ file ]
.RB [ \-version ]
.RB [ \-help ]
.ad
.SH STATUS
.B msh is deprecated and will be removed from the next nmh release.
.SH DESCRIPTION
.B msh
is an interactive program that implements a subset of the normal
.B nmh
commands operating on a single file in
.BR mmdf
format.
That is,
.B msh
is used to read a file that contains a number
of messages, as opposed to the standard
.B nmh
style of reading
a number of files, each file being a separate message in a folder.
.BR msh 's
chief advantage is that the normal
.B nmh
style does not
allow a file to have more than one message in it. Hence,
.B msh
is
ideal for reading BBoards, as these files are delivered by the
transport system in this format. In addition,
.B msh
can be used on
other files, such as message archives which have been
.BR pack ed
(see
.IR packf (1)).
Finally,
.B msh
is an excellent
.B nmh
tutor.
As the only commands available to the user are
.B nmh
commands, this
allows
.B nmh
beginners to concentrate on how commands to
.B nmh
are formed and (more or less) what they mean.
.PP
When invoked,
.B msh
reads the named file, and enters a command loop.
The user may type most of the normal
.B nmh
commands. The syntax and
semantics of these commands typed to
.B msh
are identical to their
.B nmh
counterparts. In cases where the nature of
.B msh
would be
inconsistent (e.g., specifying a
.I +folder
with some commands),
.B msh
will duly inform the user. The commands that
.B msh
currently supports
(in some slightly modified or restricted forms) are:
.PP
.RS 5
.nf
ali
burst
comp
dist
folder
forw
inc
mark
mhmail
mhn
msgchk
next
packf
pick
prev
refile
repl
rmm
scan
send
show
sortm
whatnow
whom
.fi
.RE
.PP
In addition,
.B msh
has a
.B help
command which gives a
brief overview. To terminate
.BR msh ,
type CTRL\-D, or use the
.B quit
command.
.PP
If the file is writable and has been modified, then using
.B quit
will query the user if the file should be updated.
.PP
The
.B \-prompt
.I string
switch sets the prompting string for
.BR msh .
.PP
You may wish to use an alternate
.B nmh
profile for the commands that
.B msh
executes; see
.IR mh-profile (5)
for details about the
.B $MH
environment variable.
.PP
The
.B exit
command is identical to the
.B quit
command in
.BR msh .
.PP
.B msh
supports an output redirection facility. Commands may be
followed by one of
.PP
.RS 5
.nf
.ta \w'| \fIcommand\fR 'u
^> \fIfile\fR~^write output to \fIfile\fR
^>> \fIfile\fR~^append output to \fIfile\fR
^| \fIcommand\fR~^pipe output to UNIX \fIcommand\fR
.fi
.RE
.PP
If
.I file
starts with a \*(lq\~\*(rq (tilde), then a
.BR csh \-like
expansion
takes place. Note that
.I command
is interpreted by
.BR sh .
Also note that
.B msh
does NOT support history substitutions, variable
substitutions, or alias substitutions.
.PP
When parsing commands to the left of any redirection symbol,
.B msh
will honor `\\' (backslash) as the quote next\-character symbol, and
`\*(lq' (double\-quote) as quote\-word delimiters. All other input tokens
are separated by whitespace (spaces and tabs).
.SH FILES
.fc ^ ~
.nf
.ta \w'%etcdir%/ExtraBigFileName 'u
^$HOME/\&.mh\(ruprofile~^The user profile
^%etcdir%/mts.conf~^nmh mts configuration file
.fi
.SH "PROFILE COMPONENTS"
.fc ^ ~
.nf
.ta 2.4i
.ta \w'ExtraBigProfileName 'u
^Path:~^To determine the user's nmh directory
^Msg\-Protect:~^To set mode when creating a new `file'
^fileproc:~^Program to file messages
^showproc:~^Program to show messages
.fi
.SH "SEE ALSO"
.IR packf (1)
.SH DEFAULTS
.nf
.RB ` file "' defaults to \*(lq./msgbox\*(rq"
.RB ` "\-prompt\ (msh)\ "'
.RB ` \-noscan '
.RB ` \-notopcur '
.fi
.SH CONTEXT
None
.SH BUGS
.PP
There is a strict limit of messages per file in
.BR packf 'd
format which
.B msh
can handle. Usually, this limit is 1000 messages.
.PP
Please remember that
.B msh
is not the C\-Shell, and that a lot of
the nice facilities provided by the latter are not present in the former.
.PP
In particular,
.B msh
does not understand backquoting, so the only
effective way to use
.B pick
inside
.B msh
is to always use the
.B \-seq
.I select
switch. Clever users of
.B nmh
will put the line
.P
.RS 5
pick:\0\-seq\0select\0\-list
.RE
.PP
in their
.I \&.mh\(ruprofile
file so that
.B pick
works equally well from both the shell and
.BR msh .
.PP
.B sortm
always uses
.B \-noverbose
and if
.B \-textfield
.I field
is used,
.B \-limit
.IR 0 .
.PP
The
.B msh
program inherits most (if not all) of the bugs from the
.B nmh
commands it implements.
|