Skip to content

Cshell is a linux command line shell 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-compatible with other sh-based shells such as bash and zsh.

Notifications You must be signed in to change notification settings

ianlibasora/Cshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cshell

Description

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.

Makefile and Compilation

Overview

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.

Makefile options

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:

  • build (default)

    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 invoking make. This shortcut executes the default command of a makefile.

  • run

    The run command executes everything that the build command executes, with the addition that once compilation has finished, it will automatically start the cshell shell.

  • clean

    The clean command deletes the cshell executable, along with any compilation generated files.

Cshell Usage Guide

For usage guide, refer to /manual/manual.md

By Joseph Libasora

Last updated: 20.Aug.2021

About

Cshell is a linux command line shell 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-compatible with other sh-based shells such as bash and zsh.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published