This is the result of a project shell POSIX implementation in C, following the XCU SCL as closely as possible.
Available built-ins :
- alias/unalias
- echo
- cd
- source
- break/continue
- exit
- shopt
- export
$ cd Shell-POSIX
$ mkdir build
$ cd build
$ cmake ..
$ make
There are two ways to use this program. The first one is with the shell commands in command line, the second one is with the shell commands into a .sh file.
Use the -c option for command.
$ ./42sh -c "echo example"
You need to write your shell program into a '.sh' file and to use this file on execution. To try it, you can use the available scripts in the tests' folder.
$ ./42sh [PATH_TO_SH_FILE]
- Adrien ANTON LUDWIG
- Pierre PELLETIER
- Adèle PLUQUET
- Florent TAUTY