Skip to content

Latest commit

 

History

History
31 lines (31 loc) · 965 Bytes

README.md

File metadata and controls

31 lines (31 loc) · 965 Bytes

smsh

A simple shell.
Description:

  • Quoting
    • All characters enclosed in single and double quotes preserve their literal meaning.
  • Parameter expansion
    • The only supported form of the parameter expansion is $parameter.
  • Arithmetic expansion
    • The only supported form of the arithmetic expansion is $((..)).
  • Redirection
    • '>' redirects standart output.
    • '<' redirects standart input.
  • Pipelines
    • command1 [ | command2 ...]
  • Lists
    • Asynchronous lists. If a command is terminated by the '&' it will be run in the background.
      command1 & [command2 & ... ]
    • Sequential lists. Commands that are separated by a ';' will be executed sequentially.
      command1 [; command2] ...
  • Compound commands
    • for loop
    • while loop
    • if/else statement
  • Builtin commands
    • cd
    • export
    • unset
    • help
    • bg
    • fg
  • Grammar