File tree 4 files changed +37
-15
lines changed 4 files changed +37
-15
lines changed Original file line number Diff line number Diff line change 1
- cshell
1
+ cshell
2
+ /cmake-build-wsl /
3
+ /cmake-build-debug /
4
+ /.idea /
Original file line number Diff line number Diff line change
1
+ cmake_minimum_required (VERSION 3.10)
2
+ project (CShell)
3
+
4
+ set (CMAKE_C_STANDARD 11)
5
+
6
+ set (SOURCES
7
+ src/builtins.c
8
+ src/main.c
9
+ )
10
+
11
+ set (HEADERS
12
+ src/builtins.h
13
+ )
14
+
15
+ add_executable (cshell ${SOURCES} ${HEADERS} )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,20 +3,26 @@ A basic shell implementation made in C.
3
3
# Installation
4
4
Compatible on Linux distros which have GCC installed.
5
5
6
- The shell can be compiled using make ` make cshell `
7
-
8
- The command ` ./cshell ` can be used to run it after compilation.
9
-
10
- # Functionality
11
- The shell can execute external programs and supports program arguments.
12
-
13
- Inbuilt Commands:
14
- - cd
15
- - exit
16
- - help
6
+ The shell can be compiled using CMake:
7
+ ```
8
+ $ mkdir build
9
+ $ cd build
10
+ $ cmake ..
11
+ $ make
12
+ ```
13
+
14
+ To run the shell:
15
+ ```
16
+ $ cd build
17
+ $ ./cshell
18
+ ```
19
+
20
+ # Features
21
+ - Execute external programs
22
+ - Supports program arguments
23
+ - Inbuilt commands(eg: cd, exit, help)
17
24
18
25
The man command can be used for information regarding other programs.
19
-
20
26
21
27
# Lifetime of the Shell
22
28
The shell in its lifetime has 3 basic states:
You can’t perform that action at this time.
0 commit comments