Coder Social home page Coder Social logo

rshell's Introduction

Overview - main.cpp

The rshell project is designed to replicate the bash shell, allowing users to input various bash commands, such as "ls", "echo", and "pwd". Like in bash, commands and their arguments can be input into rshell with semicolons between them. Additionally, this program has an exit function(called with "exit") which allows a user to terminate an instance of rshell.

Rshell also handles operators, input and output (<, >), and connectors, and(&&) as well as or(||). However, it does not handle multiple types of connectors being passed together and will return an error if this is attempted.

ls.cpp

This mimics the ls bash script and has the flags -l and -a working along with optional file/directory parameters that can be passed in. Currently the -R script is not functional and will not do anything when run.

Known errors in ls

  • If an invalid(non-existent) file is passed in, then no error is passed when there should be one.
  • Sometimes passing in "dir/filename" as the optional param causes seg faults.
  • Alphabetizes output, but does organizes it via ASCII value, as such uppercase precedes lowercase.
  • Passing in Multiple files/directories is largely untested and guaranteed to not work.
  • Not all syscalls are error-checked due to unresolved errors causing some failures (likely a cause of the seg faults)
  • Output is not ordered in columns.

rshell's People

Contributors

dave864 avatar

Watchers

 avatar  avatar

rshell's Issues

Have yet to recieve pull request for updated files

Hi it's David again. I uploaded an updated cp.cpp file to your repository a while back and asked you then to push it to my repository. I have yet to recieve the updated file. Please uplaod to my rshell repository. Thanks.

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.