-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathman_1_simple_shell.1
More file actions
89 lines (62 loc) · 1.81 KB
/
man_1_simple_shell.1
File metadata and controls
89 lines (62 loc) · 1.81 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
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
.TH man_1_simple_shell 1 "13 abril 2021" "version 1.0"
.SH NAME
.B simple_shell - command line interpreter.
.SH SYNOPSIS
.IP
.B ./hsh
.IP
.SH DESCRIPTION
simple_shell is a command line interpreter, or shell, in the tradition of the first Unix shell written by Ken Thompson in 1971. This shell is made for educational proposal, yet includes the basic functionality of a traditional Unix-like command line user interface.
Standard functions and system calls employed in simple_shell include:
.B execve, exit, fork, free, _getline, malloc, perror, _strtok, wait, write.
Compile simple_shell with the flags:
.P
.RS
.B $ gcc -Wall -Werror -Wextra -pedantic *.c -o hsh
.P
.RE
.SH OPTIONS
simple_shell can be run in interactive mode by typing the following command. Note: if in the prompt show ('dali<3'), you are now inside the interactive mode.
.P
.RS
.B $ ./hsh
.P
.RE
simple_shell can be run in non-interactive mode through the use of shell scripts, using pipes ('|'):
.P
.RS
.B echo 'ls' | ./hsh
.SH EXIT STATUS
When the shell goes out successfully the exit status is zero.
If fails it goes out with the error number generated by the last command executed.
.SH ENVIRONMENT
This shell has been tested on Ubuntu 14.06.6 LTS
.SH ERRORS
.SH FILES
.SH CONFORMING TO
.SH NOTES
.SH BUGS
.SH BUILTINS
The following builtin commands are:
.IT
.B exit
- exits the program.
.B cd
- change directory.
.B env
- prints all the environment variables.
.B set_env
- change the value of a environment variable.
.B unset_env
- erase an environment variable
.B history
- shows all the commands previously typed in the command line.
.B help
- shows instructions to use all this builtins.
.SH To learn how to use the builtins type:
.IT
.B help <builtin_name>
.SH EXAMPLES
.SH DEVELOPER(s) NOTES
.SH AUTHORS
Natalia Vera, Jerson Perez y Edher Ramirez.