Skip to content

Ssnnee/simple-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C - Simple Shell

Synopsis

This is a simple implementation of a shell

Usage

  • Compile your code with gcc -Wall -Werror -Wextra -pedantic *.c -o hsh
  • Include the "main.h" header file on the functions you can have
  • Output: prompt to terminal: $

Files

  • README.md Contains information about the project
  • hsh.h : The header file, contains all prototypes for funcitons used.
  • hsh.c: The main function of the shell program.
  • shell_loop.c : Contains the shell_loop function(runs the main loop of the shell program)
  • parse_line.c: Contains the parse_line function (parses a line of input into an array of arguments)
  • execute_command.c: Contains the execute func
  • getline.c : Our own getline functon
  • atoi.c : Contains our own atoi func

Code styling

Betty

Authors

About

This is a simple UNIX command interpreter.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages