-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathcmd.1
More file actions
48 lines (48 loc) · 1.38 KB
/
cmd.1
File metadata and controls
48 lines (48 loc) · 1.38 KB
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
.TH cmd 1
'''
.SH NAME
\fBcmd\fR \- simple interactive shell
'''
.SH DESCRIPTION
This interactive shell allows the user to run abitrary commands
with basic line editing.
'''
.SH BUILTINS
These commands are run in the context of the shell process.
'''
.IP "\fB.\fR (dot)" 4
List contents of current directory.
.IP "\fB..\fR (dot dot)" 4
Go up a directory, same as \fBcd ..\fR
.IP "\fBcd\fR \fIdirectory\fR" 4
Go to \fIdirectory\fR.
.IP "\fBecho\fR \fImessage\fR" 4
Write \fImessage\fR to stdout.
.IP "\fBwrite\fR \fImessage\fR \fIfile\fR" 4
Write \fImessage\fR to \fIfile\fR.
.IP "\fBset\fR [\fIVAR\fR]" 4
Show the value of \fIVAR\fR, or list all variables.
.IP "\fBset\fR \fIVAR\fR \fIvalue\fR" 4
Set \fIVAR\fR to \fIvalue\fR.
.IP "\fBunset\fR \fIVAR\fR" 4
Remove \fIVAR\fR from environment.
.IP "\fBexit\fR" 4
Exit the shell.
'''
.SH ENVIRONMENT
.IP "PATH" 8
Colon-separated list of directories to look for commands.
.IP "HOME" 8
User's home directory, used to expand ~/ in paths.
'''
.SH NOTES
Common POSIX shell features not supported in cmd: redirections (>file),
pipes (|cmd), globbing (*), background execution (&), jobs, control flow
(while, case), advanced variable substituion (${var...}), backticks.
.P
Like in \fBmsh\fR, variable references ($var) are always treated as
a single token regardless of the stored value, more like "$var" works
in POSIX shell.
'''
.SH SEE ALSO
\fBmsh\fR(1), \fBexecvp\fR(3).