Giter VIP home page Giter VIP logo

shell_v2's Introduction

simple shellv2

Overview

simple shell is a UNIX command interpreter that replicates core functionalities of the sh shell. This project was developed as part of the third month curriculum at Holberton School, San Francisco.

Installation

Clone this repository to your local system and compile using gcc -Wall -Werror -Wextra -pedantic *.c.

Usage

  • Once in the shell, use exactly like sh. A list of covered features is provided below. The shell can run in either interactive or non-interactive mode.
  • Function returns with the specified exit status.

Features

The shell handles command line input, including arguements, without the use of most standard library functions such as printf, strtok, or getline. In addition to running executables in the PATH, the following features are currently implemented.

Builtin Commands Functionality
exit [status] Exit shell with specified exit status
env Print list of current environment variables
setenv Set an environment variable
unsetenv Unset an environment variable
cd Change directories
history Prints command history
help Displays help for builtin commands
alias Alias a command as another or print aliases
Other Features Functionality
Ctrl-D End of file - exit shell
Ctrl-C Does not exit shell - (Differs from sh)
; Command separator, allows command chaining
# Comment indicator
< Redirect input
> Redirect output
<< Append input (heredoc)
>> Append output

Example Usage

  • This shell takes input the same as a standard unix shell. After running the executable hsh, enter desired input and press return.
  • ls -l
  • exit 98
  • cd -

Release History

  • 0.0.1 - First release - 17 Apr 2019
  • 0.0.2 - Second release - 03 Mar 2020

About

All files were created and compiled on Ubuntu 14.04.4 LTS using GCC 4.8.4 with the following flags: -Wall -Werror -Wextra -pedantic

Authors

shell_v2's People

Contributors

arthurdamm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.