Giter Club home page Giter Club logo

rshell's Introduction

rshell

Project source can be downloaded from https://github.com/Liniarc/rshell.git

###Author & Contributor List Thomas Liu

###Synopsis

Recreate command shell for CS100 assignment in Haskell

The shell is capable of taking in a command line and executing it similarlly to how it'd be executed in the Bash shell.

In addition, there is a clone of ls and cp which which emulates the bash built-in commands.

Running the file

In order to run this program, you need to have the ghc compiler.

Bugs

#####rshell Short-circuit of && and || will short-circuit all remaining commands even if remaining commands would normally be executed e.g. true || echo 1; echo 2 will not run echo 2 This is different from the Bash terminal would create sub operators such that the command would run as (true || echo 1); echo 2 which would call echo 2

Parenthesis are not supported of logical operators (or in general)

Will not work if in script mode

IO redirection of specific file descriptors do not work. i.e. $ g++ main.cpp 2> errors will not work

Any additional strings between the first io message and next connector will be ignored. i.e. $ cat < file AAAAA > file2 AAAAA will ignore AAAAA

rshell displays the full path rather than replacing $HOME with ~

running rshell from within rshell will crash when escaped with Ctrl + C

#####ls

ls will output uppercase files before lowercase files

ls will not minimize column lengths and pad all files to the length of the longest file

ls -l has set width of columns. If a cell is too long, it will throw off the entire row (i.e. a file with 100+ links to it)

ls displays the files in order horizontally instead of vertically.

ls assumes screen width of 80 rather than dynamically determining that

rshell's People

Contributors

liniarc avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

khuan013

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.