-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathman_1_simple_shell
50 lines (32 loc) · 1.23 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
46
47
48
49
50
.TH SHELL 1 "DECEMBER 9, 2021" "Hoberton-School" "0x16"
"1.0" "C - simple_shell - man page"
.SH NAME
.B simple_shell \- simple UNIX command interpreter made in C
.SH SYNOPSIS
.PP
($) \- [command] [options \&...]
.SH DESCRIPTION
Simple_Shell is a command language interpreter that executes commands read from the standard input.
Clone of sh
.SH RETURN VALUE
Always returns the status of the previously executed command ( 0 if no command was executed) , number means exit fail codes
.SH PATH
Looks in PATH env variable for executable program file location.
.SH
.B Invocation
.in +2n
simple_shell can be invoked both interactively and non-interactively.
If invoked with standard input not connected to a terminal, it reads and executes received commands in order.
If simple_shell is invoked with standard input connected to a terminal, an interactive shell is opened.
When executing interactively, the simpl_shell displays the prompt \"($) "\ when it is ready to read a command.
.SH OPTIONS
.B simple_shell
Command options will be typed after the main command followed by a space and a
'-' symbol.
.SH EXAMPLE
./hsh [command] [options]
$ ls -l
.SH BUGS
A infinite loop when we make ctrl+z
.SH AUTHOR
Cesar Molina, Felipe Leon, Johanna Alfonso.