Skip to content

christopherchoe/simple_shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hsh_

Table of Contents

Description

hsh is a simple command line interpreter based on the functionality of the POSIX 1003.2-conformant Dash command line interpreter on Ubuntu 14.04. For pedagogical reasons, hsh was written using only limited subset of the C89 standard library (see Implementation).

Installation

  • Clone this repository:
    git clone "https://github.com/christopherchoe/simple_shell.git"
  • Compile all C source files in the simple_shell directory using gcc 4.8 or later:
    gcc -Wall -pedantic -Werror -Wextra *.c -o hsh

Usage

  • To run in interactive mode: ./hsh
  • To run in non-interactive mode: echo "ls -l" | ./hsh

hsh Builtin Commands

  • exit
  • env
  • setenv
  • unsetenv
  • cd

Implementation

hsh was written using only limited subset of the C89 standard library including the following standard functions and system calls: access, execve, exit, fork, free, getline, malloc, perror, wait, write, isatty

Authors

Chris and Fernando are software engineers always open to new opportunities, so do not hesitate to contact us.

License

This project is free to use without permission. However, it is provided as-is and with absolutely no warranties.

Written with StackEdit. Seriously, check it out.

About

A simple shell built with minimal library usage

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages