Skip to content

Repository files navigation

Simple Shell - sh

Welcome to our custom implementation of the Bourne Shell (sh). This project is a collaborative effort to create a minimal yet functional shell environment.

Features

  • Custom command-line interpreter based on the Bourne Shell (sh).
  • Handles basic command execution, changing directories, and more.

Getting Started

Compilation

To compile the shell, use the following command:

gcc -Wall -Werror -pedantic -Wextra -std=gnu89 *.c -o hsh

Testing

./run ./hsh ./checker tests/simple_shell_0.1
# or
./checker ./hsh tests/simple_shell_0.1/test_file(s)

Usage

Once compiled, you can start the shell by running

./hsh

Example commands

Here are a few basic commands you can try with our custom shell:

  • ls - List directory contents (Accepts arguments like -l, -a too).
  • cd - Change the current directory.
  • echo - Display a line of text.
  • exit - Exit the exit. (Ctrl + C works as well.)

Project Details

  • Language: C
  • Standard: Gnu89
  • Warnings: All enabled for best practices and error prevention.

By: Emmanuel K. Tettey and Lincoln Mihigo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors