Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.22 KB

File metadata and controls

43 lines (31 loc) · 1.22 KB

USH

usage screenshot

This is simple command line interpreter for Unix. Developers: @okulinich, @ailchuk

ush:

  • u - ucode
  • sh - shell

You need clang compiler to be installed to compile this project, or you can change default compiler in Makefile.

Use make to install and ./ush to start shell. make uninstall - uninstall shell make reistall - uninstall & install shell

ush implements builtin commands:

  • export
  • unset
  • exit
  • env with -i, -P, -u
  • cd with -s, -P and - argument
  • pwd with -L, -P
  • which with -a, -s
  • echo with -n, -e, -E

If command is not found among builtin ones, ush searches for needed binary file in folders, specified by $PATH variable.

Shell manages signals CTRL+D, CTRL+C, CTRL+Z and command separator ;

These characters are escaped to be used literally: space, ', ", $, (, ), \\, {, }.

Ush manages tilde expansion ~, the basic form of parameter expansion ${parameter}, command substitution command and $(command).

Command editing is allowed with Arrow keys.

Enjoy!