Giter Site home page Giter Site logo

rshell-1's Introduction

#Overview

This is a simple shell which will get the login name and host and output them together with a dollar sign at the end.

Following this will be an input by the user which will be processed and acted on appropriately.

#How to Install

All you need to do is to just:

1.) clone the repository and type in make, 2.) type bin/rshell to run the program,

#How to Use

You may type and run several types of executable commands and their parameters. They may also be connected by a connector. It will work with any number of commands and parameters and connectors may be placed anywhere in between commands. Some examples include:

* ls -a
* pwd ; ls -a
*       ls      -a;	        pwd&&exit
* ls    && pwd ;ls   -a ||ps

This shell can also run another instance of itself, which can be seen if you use ps.

When connectors are used, the commands are read from left to right and only for the next command.

For example:

ls || pwd ; ps

The ls will run and return true. Since the connector is an ||, pwd will not run, but the next command, ps, will.

###Whitespace

Inserting whitespace anywhere around your commands will still compile and will only fail if there is a bad input.

###Exit

An input of exit will take you out of the terminal. This will work with any parameters that come after it. However, if it is passed in as a parameter, it will not work.

For any bad inputs, the commands will not run and you will be prompted to try again.

###Comments

Comments may be used by inserting a # before your comment. It may be placed anywhere in the input, but any characters after it will be ignored.

ls -a #;pwd

ls -a will run but since pwd is after the # sign, it will be ignored.

###Special Cases

A valid input followed by either ;, |, or & without any input after that will still be correct. For example:

ls -a ; 

will still work.

###Bugs!

None are currently known. Tell me if you find some!

rshell-1's People

Contributors

phung001 avatar kchan049 avatar

Watchers

James Cloos avatar  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.