-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathman1_simpleshell
77 lines (57 loc) · 1.33 KB
/
man1_simpleshell
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
.TH SHELL 3 "18 SEPTEMBER 2023" "shell man page"
.SH NAME
$ - shellter_in_place
.SH SYNOPSIS
$ [options] [file]
.SH DESCRIPTION
.B $
is a command language interpreter that executes commands read from the standard
input or from a file.
.B Overview
shellter_in_place is a shell that reads input and generally executes commands.
.B Lexical Structure
shellter_in_place reads lines from a file and breaks it up
into tokens at whitespace.
.B ./hsh
This executable file runs shellter_in_place
.SH USAGE
In addition to searching the path, the following features are supported:
.br
exit - Exit shell with a specified exit status
.br
env - Print a list of the environment variables
.br
setenv - Set a new environment variable
.br
unsetenv - Unset an environment variable
.br
cd - Change directories
.br
Ctrl-D - End of file: exit shell
.br
; - Command separator
.br
# - Comment indicator
.br
.SH BUILTINS
.br
exit - to exit shellter_in_place
.br
cd - to change the directory
.br
env - prints out the environment variables
.br
setenv - initialize a new environment variable, or modify an existing one
.br
unsetenv - remove an environment variable
.br
.SH EXAMPLE
$ ls -a
hsh main.c header.h
$ exit
$
.SH BUGS
No known bugs
.SH AUTHOR
Awosanmi Boluwatife Nathaniel <[email protected]>
theijhay <[email protected]>