This repo has our custom shell project, which attempts to replicate some of the processes of the 'sh' shell or 'bash' shell. For more on the processes of arsine, please reference our blog post here: https://medium.com/@djohncoleman/arsine-a-custom-shell-command-line-interpreter-fa5561169cbc
access
, chdir
, close
, closedir
, execve
, exit
, fork
,
free
, fstat
, getcwd
, getline
, kill
, lstat
, malloc
,
open
, opendir
, perror
, read
, readdir
, signal
, stat
,
strtok
, wait
, waitpid
, wait3
, wait4
, write
, _exit
All files in this repository are designed to compile with GNU compiler
collection v. 'gcc 4.8.4
' in the linux environment from 'Ubuntu 14.04.5 LTS
'. When compiled, the executable file replicates a 'shell' or command line
interpreter, which is a user interface used for access to an operating system's
services. This shell has a set of custom built-in commands, and also integrates
with other commands located in the system's PATH. Output and functionality from
commands is designed to replicate output from the shell sh
(dash) and some
bash commands. For more on the detailed functionality of our shell, please read
our blog posting here:
$ gcc -Wall -Werror -Wextra -pedantic *.c -o hsh
Compile with Make: make all
interactive mode: $ ./hsh
non-interactive mode: $ echo "ls -la" | ./hsh
arsine functions just as any other shell. Here is an example usage of the ls command with flags. This command lists directory contents.
$ ls -la
To run tests on the custom shell follow the instructions in the custom shell checker in this repository: https://github.com/glyif/shellfish
See file ./FILE_LIST.md
Bobby Yang - https://github.com/bobstermyang/
David John Coleman II - http://www.davidjohncoleman.com/
MIT License