Skip to content

willccoates/rshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages