Skip to content

arpan-dasgupta/Shell

Repository files navigation

Shell (ASH)

Aim

  • To build a shell performing basic operations.
  • Must have cd, ls, pwd and echo inbuilt.
  • Other commands must be implemented using exec.

Constraints

  • No piping implemented yet.
  • Some unhandled corner cases.

Usage

  • Run command make;make clean;./ash to build from source or simply ./ash on terminal

Working

  • shell.c - main loop of the shell, output prompt and input command.
  • command.c - all form of string parsing, command processing and call to respective functions is performed here.
  • init.c - initializes prompt.
  • list.c - implements ls and variants.
  • pwd.c - implements pwd.
  • cd.c - implements cd and variants.
  • echo.c - implements echo.
  • others.c - implements other commands using exec.
  • history.c - implements history command.
  • nightswatch.c - implements a specific version of watch command.
  • pinfo.c - implements pinfo command.
  • setenv.c - implements setenv command.
  • unsetenv.c - implements unsetenv command.

About

A Linux shell implemented in C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages