Code Monkey home page Code Monkey logo

ve482_p1's Introduction

mumsh

A developing bash in C. Build Status

Features

  • Redirection and Pipe support (> >> < |)
  • Detail grammar errors report (8 cases)
  • Multiple-line input support (Not complete command will ask for more in the next line)
  • background job support (use & as syntax)
  • quote support(" and ' supported)

cd command support

Absolute path and relative path are supported. (~ is supported as home path)

If there is no args, the home path will be the default path.

If there are more than 1 args, the command will have effects.

Note : cd - will return to the previous directory. If there is no cd before, it will remain the directory.

pwd command support

Only simple pwd is supported.

jobs command support

It will gives all the background jobs as well as state (running or done)

errors report

case 1. trying to running not existing exec file.

case 2. trying to use input redirection of not existing file.

case 3. trying to write or append to files that does not exist.

case 4. trying to have more than one input redirection.

case 5. trying to have more than one output redirection.

case 6. trying to running commands with wrong syntax.

case 7. trying to exec a program with empty character.

case 8. trying to cd directory that does not exist.

How to build

Use given CMakeLists.txt to compile. (If you failed to compile, use -DCMAKE_C_COMPILER=clang).

How to use

This shell can be launched by mumsh if you use the given CMAKE file.

Bug report

Now mumsh is in rapid development and there are many bugs that does not be found. If you find one bug, please use the given CMakeLists.txt to compile and use mumsh_memory_check to reappear the bug and report if there are any issues with memory. If there is any problem with using issues, you can directly mailto:[email protected] .

ve482_p1's People

Contributors

wznmickey 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.