f-huang / 42sh

This project consists of creating a complete shell from scratch. A minimum set of features are required, from which you will build your own successful shell. This project allows us to see or review a very wide range of standard UNIX (and POSIX) features.
0 stars 0 forks source link

Builtin exit #12

Open f-huang opened 7 years ago

f-huang commented 7 years ago

cause the shell to exit

int     builtin_exit(t_shell *sh, int ac, char **av);

The exit utility shall cause the shell to exit with the exit status specified by the unsigned decimal integer n. If n is specified, but its value is not between 0 and 255 inclusively, the exit status is undefined.

f-huang commented 7 years ago

https://github.com/Piou44/42sh/blob/master/test.md#exit