-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathman_1_simple_shell
43 lines (39 loc) · 1.53 KB
/
man_1_simple_shell
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
.TH "simple_shell" 9"November 2022" ""
.SH NAME
simple_shell - a shell (standard command line interpreter)
.SH SYNOPSIS
hsh [-abcDefg] [arguement ...]
.SH DESCRIPTION
The hsh utility reads and interprets a command line string, either in interactive or non-interactive mode. It then executes commands based on the input. Both the local directory and PATH are searched.
When applicable, the function prints to stdout or stderr, the standard output and error stream, respectively.
In interactive mode, the shell will prompt with \' $ \', and proess the entered input upon a return stroke. In non-interactive mode, standard output must be piped into the executable.
.SH USAGE
In addition to searching the path, the following features are supported.
exit - Exit shell with a specified exit status
env - Print a list of the environment variables
setenv - Set a new environment variable
unsetenv - Unset an environment variable
cd - Change directories
Ctrl-D - End of file: exit shell
Ctrl-C - Does NOT exit shell
; - Command separator for command chaining
# - Comment indicator
.SH EXAMPLE USAGE
cd -
env
ls -l
exit 98
.SH LIMITATIONS
Word length - Buffers of 1024 characacters are used in several aspects of the shell. Excessively long filenames or paths may cause errors.
.SH BUGS
No known bugs at this time.
.SH AUTHORS
Written by Manifest Chakalov and Mary Ishola
.SH IN PROGRESS
The following features are currently in progress
&& and || operators
aliases
variable replacements
help
history
taking a file as input