Skip to content

rluk001/rshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSHELL


Author & Contributor List

Ryan Luk

All other known bugs and fixes can be set to rluk001@ucr.edu

Reported bugs/fixes will be submitted to correction.

How to run program and install

  1. Open a terminal and clone the repository. git clone http://github.com/rluk001/rshell.git

  2. Then cd into the project cd rshell

  3. Create executables with make

  4. Execute rshell bin/rshell

Using RShell

Multiple commands can be used together on the same line using ; , &&  or || as connectors.

Connecting multiple commands with ; will execute every command on their own regardless of the prior command's success or failure.

Connecting multiple commands with && will execute every command in order until one fails.

Does NOT support multiple types of connectors on one line.

Extra connectors in front of and after commands do nothing.

Anything after a # will be ignored.

To exit RShell, use the command exit.

Bugs/Limitations of rshell


1. When running the shell, it is unable to handle the && connector and the || connector 
together and print it out successfully.

2. Requires a semi-colon to run the program with the && and || on the same line.

3. Running multiple & and | can cause the program to crash.

4. Doesn't check if there is two &'s or |'s when it is used

5. Does not contain the input redirection with "<<<"

6. Having multiple inputs will result in taking the last one only.

7. When using the || connector, it will consider it a pipe.

8. Having more than two inputs or two outputs will result in an error.

9. When running with multiple pipes, it might segmentation fault.

Bugs/Limitations of ls

1. The recursive case might cause errors when used on really big cases from symbolic link issues.

2. There are extra newlines after ls output and it depends on what flags are used.

3. Files are not sorted the same way as the ls used in bash.

4. It doesn't print out nicely in columns. It is printed out two spaces at once for "-a".

5. The total blocks space on -l is not added correctly. It is slightly off the correct amount.

Bugs/Limitations of Signals

1. The Ctrl-Z command does not work as its suppose to.

2. Some of the functions like piping do not completely work with execv.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •