-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathman_1_simple_shell
32 lines (25 loc) · 979 Bytes
/
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
.TH HSH 1 12-12-2022 HSH\ 1 Simple\ Shell\ Manual
.SH NAME
hsh - Simple Shell. Command line interpreter
.SH SYNOPSIS
Run ./hsh [command] [argument] for interactive mode and echo "[command] [argument]" | ./hsh for non-interactive mode.
.SH DESCRIPTION
Simple Shell is a command line interpreter developed in C language that emulates the most basic functionality of "sh".
.SH COMPILATION
gcc -Wall -Werror -Wextra -pedantic -std=gnu89 *.c -o hsh
.SH MODES
The shell can be used in interactive or non-interactive mode. The interactive mode is how the shell is normally used, the executable file is run and we can write commands. In the non-interactive mode you pass the command to the executable file with a pipe operator. In the "EXAMPLES" section you can see how to use them.
.SH EXAMPLES
- Interactive mode:
.TP
\r$ ./hsh
.TP
\r\rhsh$ ls -l
.TP
- Non-interactive mode:
.TP
\recho "ls -l" | ./hsh
.SH AUTHORS
Charline Mosquera @CharCoder
.TP
\rFelipe Villamizar @felipevcc