Skip to content

Abdorithm/simple_shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple_shell

A simple UNIX command interpreter. An immitation of the fantastic Bourne-again SHell a.k.a bash. I can't find a suitable name for my shell. Every Unix shell out there is an acronym of some words ending with the word "shell", like bash or zsh which stands for Z shell.

This shell is named hsh.

ALX Africa gave me the opportunity to work on this project during studying in their sorfware engineering program.

#DoHardThings

Installation

To use this project, first clone the repo on your device using the command below:
git clone https://github.com/Abdorithm/simple_shell.git
Then, the repo will be downloaded on your machine.
You can also download it as a zip file or fork it to your account.

Usage

After installation, fire up your terminal and navigate to the simple_shell directory.

To run the new shell, run this command:

user@os:~/simple_shell$ ./hsh

Now you can execute commands using our hsh instead of bash or whatever the shell in your system.

abdo@pop:~/simple_shell$ ./hsh 
^-^$ ls
builtin_exit.c	hsh  main.c
^-^$ echo "hello, shell!"
"hello, shell!"
^-^$ exit
abdo@pop:~/simple_shell$ 

Commands

There are a numerous number of command a UNIX shell can intrepeter. To keep it short, following is a list of the commands that are not implemented yet. When these are implemented, I will delete the word "simple" from the repo name.

  • Most built-ins, like the cd command and alias.
  • Logical operators and command separators.
  • File as input, and comments.

Otherwise, hsh works as expected, for more info about the development of this shell, I will write a DEV.md.

About

A simple UNIX shell that executes user commands.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published