Skip to content

brerickner/simple_shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bre

Simple Bre-Shell

A simple UNIX command interpreter assigned in the curriculum at Holberton School

Description

Hsh is a simple rendition of a UNIX command language interpreter that reads and executes commands from standard input, or a file.

Initialization

Compile all c files in the repository, using the wildcard command (*.c), and run the executable:

$ gcc *.c -o hsh
$ ./hsh

Hsh can be used in two different modes, interactive and non-interactive.

Interactive hsh displays the prompt $ when it is ready to read a command and the user is able to interactively type or interrupt commands.

Example:

$./hsh
$

Non-interactive hsh will take a script and emulate an interactive shell by prompting the user to input values.

Example:

$ echo "echo 'hello world'" | ./hsh
'hello world'
$

Usage

echo "hello world" | ./hsh

or

./hsh

Contributing

Holberton students have contributed test cases in order to check for edge cases.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages