Cshell is a command line interface through which a user may interface with the computer operating system. Built using the C programming language, it allows the user to access and command operating system functions through human readable commands. Hosting a number of internally implemented system commands, cshell is sh-compatable with other sh-based shells such as bash
and zsh
.
Written in the C programming language, the cshell project must be first compiled before it can be executed. To manage this, a number of makefiles are included with this project. Located throughout the project, the primary makefile resides in the /bin
directory. All other makefiles as such, are simply just for ease of use, passing commands back to the primary makefile for execution. In total, there are 3 makefiles attached with this project, located in:
/
project root/bin
directory/src
directory
Whenever the user wishes to use the makefiles, they should be located in one of these three directories.
To call the makefile to execute a certain operation, the user must type the prefix make
, followed by the desired command into the command line, separated by a space. For example:
make build
The makefiles come with 3 commands which the user may invoke:
-
The
build
command is the default command which the makefile will execute when invoked. Tasked with compiling and linking all the necessary source files, it creates the executable for the cshell shell, and places it inside the/bin
directory. As the default command, the user can also invoke this command through just invokingmake
. This shortcut executes the default command of a makefile. -
The
run
command executes everything that thebuild
command executes, with the addition that once compilation has finished, it will automatically start the cshell shell. -
The
clean
command deletes the cshell executable, along with any compilation generated files.
For usage guide, refer to /manual/manual.md
By Joseph Libasora
Last updated: 20.Aug.2021