Skip to content

A shell written in C with a subset of features of well-known shells.

Notifications You must be signed in to change notification settings

beteivap/smallsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Paldin Bet Eivaz
Feb 21, 2022
60780f7 · Feb 21, 2022

History

1 Commit
Feb 21, 2022
Feb 21, 2022
Feb 21, 2022

Repository files navigation

smallsh

A shell written in C with a subset of features of well-known shells, such as bash.

– Provides a prompt for running commands
– Handles blank lines and comments, which are lines beginning with the # character
– Provides expansion for the variable $$
– Executes 3 commands exit, cd, and status via code built into the shell
– Executes other commands by creating new processes using a function from the exec family of functions
– Supports input and output redirection
– Supports running commands in foreground and background processes
– Implements custom handlers for 2 signals, SIGINT and SIGTSTP

smallsh in Action

Running the Shell

  1. At a command prompt, cd into the project directory
  2. Compile the code by entering gcc --std=gnu99 -o smallsh smallsh.c
  3. Run the shell by entering ./smallsh

About

A shell written in C with a subset of features of well-known shells.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages