Skip to content

aesgu001/rshell-2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rshell

a simple command shell

Rshell executes commands read from standard input. Type any command, and Rshell will execute the corresponding program. Type "exit" to quit the shell.

Enter multiple commands on a single line by using these connectors:

&& executes the right side if the left side succeeds.

|| executes the right side if the left side fails.

; always executes the right side.

# never executes the right side (thus making it a comment).

Connectors at the start of a line will proceed as if the left side succeeded, and connectors at the end of a line will be ignored. Connectors are evaluated left to right.

If multiple connectors are adjacent to each other, undefined behavior will result.

KNOWN ISSUES

Ctrl-D will attempt to run the current command before exiting, and may take two presses to work.

Arguments cannot have connectors, quotes, or other special characters in them.

ls

list files in a directory

ls lists information about one or more files or directories, using the current working directory if none are specified.

If -l is not given, ls will arrange the files in rows and columns, left-to-right then top-to-bottom. ls lists files in non-case-sensitive alphabetical order, and normally ignores files starting with .

ARGUMENTS

-a

Also list files starting with .

These dotfiles will come before all other files.

-l

List more detailed information about each file.

-R

List all subdirectories recursively.

KNOWN ISSUES

Unlike GNU ls, this program will not print files in color.

About

Simple command shell for CS100

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C++ 97.7%
  • Makefile 2.3%