Git Product home page Git Product logo

42sh's Introduction

42sh

Subject:

Subject

Mandatory part:

  • Prompt without line edition.
  • Builtins cd, echo, exit, env, setenv, unsetenv with there options.
  • Executing simple commands with there parameters using PATH.
  • Support for redirection >, >>, <and |.
  • Logical operand &&and ||.
  • Separator ;.

Optional feature (five of theses are mandatory to validate the project):

  • Inhibitors ", 'and \.
  • Advanced redirections: aggregation of file output and heredoc <<.
  • Globbing: *, ?, [], {}, etc.
  • Backquotes `.
  • Subshell with operand ().
  • Local variable and builtin unset and export.
  • History with builtin historyand ! with options.
  • Advanced line edition.
  • File descriptors and builtin read with options.
  • Dynamical autocompletion.

Optional feature highly appreciated:

  • Job Control and builtins job, fg, bg and operand &.
  • Shell Scripting: bang (!), variable assignements, brace group, if, while, until, for and functions

Bonuses

  • Bc like command with calc
  • History search with CTRL+H
  • Can perform arithmetic operations on local variables assignment
  • Can search binary name with approximation (like which)
  • Replacement of ~ by $HOME
  • Replacement of any environment variable with the value of the variable.
  • Binary hashtable
  • Rights in the PATH
  • Custom ctrl-v to handle multi-line copy and paste
  • Lot of shortcut for line edition like
    • CTRL+T Change the position of the characters
    • CTRL+U Delete the entire line
    • CTRL+K Delete from cursor to the end of the line
    • CTRL+W Delete the last word typed
    • CTRL+L Clear shortcut
    • SHIFT + Up cursor
    • SHIFT + Down cursor
    • SHIFT + Go to right word
    • SHIFT + Go to left word
    • And other conventional shortcut !

42sh's People

Contributors

alexisvisco avatar criimbow avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

criimbow

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.