Giter Site home page Giter Site logo

neo-eggshell-terminal's Introduction

Welcome to Egg Shell!

Introduction

In this project I will be attempting to create a mini shell, from which I can execute external commands, execute internal commands, interact with environment Variables (create/retrieve).

Compilation

This project uses cmake which greatly faciliattes the compilation process. CMake version 3.16+
To Compile Simply run:

cmake CMakeLists.txt
make

Execution

C++ Version 20
To execute simply Run 'neoEggshell' from the build folder

./neoEggshell

Internal Commands

- echo
- unset <variable name>
- MYVAR=MYVALUE                     (for setting environment variables).
- showenv
- listproc                          (Show suspended processes)
- <command 1> | <command 2> | ...   (Piping)
- <command> * <filneame>            (Redirects where * = ['>'/'>>'/'<'])
- source <filename>                 (Read and parse commands line by line from text file)
- bg
- <command> &                       (Ampersnad after commands -> do not wait for them to finish)
- cd <dir>
- exit

External Commands

External commands can be run normally by entering them in the prompt.

Features

multiple commands can be entered in one line by using semicolons:

command1;command 2

White Space can be escaped by using Quotes

mkdir "Hello World"

If the entry does not contain an even number of quotes, the user is asked for more input:

mkdir "hel
llo"

Issues

When using the ampersand '&' feature, the output does not come as expcted, and comes all over the terminal (Probably an issue with the prompt and the outputs happening simulatenously). The same prpblem occurs when using the bg command, as two outputs happen simultaneously.

The bg and '&' features also leave behind zombie processes as they are never waited for.

neo-eggshell-terminal's People

Contributors

ijtan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.