Implementation of basic command-line interpreter (based on zsh and
bash), using the C programming language.
make
./ush
make reinstall
./ush
make uninstall
export;unset;local;exit;bye;history;return;true;false;jobs;fgwithout any arguments and with%n,%str,%+,%-,n,str,+,-arguments.
-
envwith next flags:-i;-P;-u.
-
cdwith next flags:-s;-P;-.
-
pwdwith next flags:-L;-P.
-
whichwith next flags:-a;-s.
-
echowith next flags:-n;-e;-E.
CTRL+D;CTRL+C;CTRL+Z.
Next characters can be escaped to be used literally: space, ',
", $, (, ), \, `, {, }.
Tilde expansions ~ with the followinf tilde-prefixes:
~;~/dir_name;username/dir_name;~+/dir_name;~-/dir_name.
- only basic form -
${parameter}.
- `command`
- $(command)
Nested command substitutions also supported.
- support of pipes
|; - support of logical operators
&&and||; - job control system (only for foregraund jobs and processes);
- command history using
Arrowkeys; - command editing, cursor motion using
Arrowkeys; - prompt customization using
ALT+1combination; - the
;command line separator; - errors management;
- user rnvironment management.
Collision is an open-sourced software licensed under the MIT license.