Git Product home page Git Product logo

rshell's Introduction

rshell

general:

This program mimics the bash shell by taking in commands and performing their tasks as usual. You can perfrom tasks such as

  • ls -lists the files in a directory.

    • with all flags
  • cat -displays everything in a file

  • echo -prints out what is passed in as a parameter

  • mkdir -makes a new directory

  • "#" -everything after this is a comment and does not get executed

  • & -runs program in background allowing terminal to continue

  • exit -typing exit will kill the program

  • rm -removes a file

  • rmdir -removes a directory

  • cd -changes the working directory

    • cd ..(changes to one directory back in the path)

    • cd (changes to home directory)

    • cd [directory name] (changes to that directory)

  • for more features view the /bin page on your computer

UPDATE:

(1)

  • the ls command has now been written

  • ls can take the parameters [no parameters],[-a],[-l],[-R] and any combination on them all

  • ls can also take file names which will output the contents inside the files or directories

(2)

  • the cd(change directory) command is now working properly

  • ^c does not kill the whole program, just kills program running inside rshell

how to run rshell:

  • type make, this will build and compile the program

  • to run, type bin/rshell

  • to clean the file, you type make clean and this will discard executibles and object files

how to run the ls command:

  • type make, this will build both rshell and ls

  • type bin/ls [argument lists]

bugs:

  • when an error is produced, it sometimes gets printed on the line with the "$" and the next line does not have a "$", just need to hit enter again

  • "#" right after a command does not work properly

    • for example (ls# -a) will not execute ls
  • "#' does not work before commands

  • when "exit" is typed, sometimes it will need to be typed twice, but it will still exit

  • ls -R does not work at all

  • ls with more than one filename does not work

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.