-
Notifications
You must be signed in to change notification settings - Fork 2
/
man_1_simple_shell
45 lines (45 loc) · 1.39 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
44
45
.TH Our simple_shell "April 9 2021" "0.1" "simple_shell Manual Page"
.SH NAME
simple_shell - Simple UNIX command interpreter (simple_shell)
.SH SYNOPSIS
simple_shell [file_name]
.SH DESCRIPTION
.sp
simple_shell is an emulation of the UNIX command interpreter
.SH Overview
.sp
As a simulation simple_shell reads command lines from either a file or the terminal, interprets them, and generally executes other commands.
.SH INVOCATION
.sp
If no args are present and if the standard input of the shell is connected to a terminal the shell is considered an interactive shell.
.sp
An interactive shell generally prompts before each command and handles programming and command errors differently.
.SH EXAMPLES
.sp
.SH INTERACTIVE MODE:
.sp
$ ./simple_shell
.sp
$ /bin/pwd || $pwd
.SH Output: /home/vagrant/simple_shell
.sp
$ ./simple_shell
.sp
$ /bin/ls || $ls
.SH Output: AUTHORS _built-ins.c _findpath.c _free.c _getenv.c headers.h man_1_simple_shell README.md simple_shell.c str_tools.c tok_tools.c
.sp
.SH NON-INTERACTIVE MODE:
.sp
$ echo "/bin/pwd" | ./simple_shell
.SH Output: /home/vagrant/simple_shell
__________________________________________________________
.SH RETURN VALUE
Exit status at the end of a run
.SH SEE ALSO
Run man sh
.SH BUGS
For any encounter of errors please report to the emails:
.sp
.SH AUTHOR
Written by Yerardin Perlaza and Daniel Ortega