This is a simple implementation of the UNIX shell (/bin/sh
).
This is implemented as part of the ALX SE Low-level programming & Algorithm group project.
$ make
# or
$ gcc -Wall -Werror -Wextra -pedantic -std=gnu89 *.c -o hsh
$ ./hsh
$ echo "ls" | ./hsh
PATH
exit
built-in, that exits the shell
exit status
, where status is an integer used to exit the shellenv
built-in, that prints the current environmentsetenv
and unsetenv
builtin commandscd
;
&&
and ||
shell logical operatorsalias
builtin command$?
variable$$
variable#
)./hsh file
Made with contrib.rocks.