Skip to content

ammarsubei/Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Almond Shell

A simple implementation of a shell in C, written by Ammar Subei. Still a work-in-progress, and needs a decent amount of polishing.
Now supports basic tab-completion for file system paths, and supports access to command history using the arrow keys.

Enter your desired command followed by its arguments (if any). Supports some built-in functions like "cd" and "exit". Makefile provided for compilation.

Functionality

The shell's up-to-date functionality:

  1. Maximum of 20 arguments
  2. Maximum of 2500 characters per line
  3. Supports basic I/O redirection
  • Maximum of 2 different redirections per line
  • command > filename redirects the output of command to filename, overwriting existing contents of filename
  • command >> filename redirects the output of command to filename, appending to existing contents of filename
  • command < filename redirects command to read its input from filename
  1. Supports changing current working directory
  2. Supports basic tab-completion
  3. Supports command history
  4. Does not support background processes
  5. Does not support command pipes

TO-DOs

Here is a checklist of things I plan to work on for Almond Shell:

  • Update user prompt to show current directory
  • Support changing current directory
  • Provide user with help command
  • Support tab-completion/auto-complete
  • Support command history
  • Support command pipes

About

A primitive shell in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published