Skip to content

Repository files navigation

Write a UNIX command line interpreter.

Usage: simple_shell Your Shell should:

Display a prompt and wait for the user to type a command. A command line always ends with a new line. The prompt is displayed again each time a command has been executed. The command lines are simple, no semicolons, no pipes, no redirections or any other advanced features. The command lines are made only of one word. No arguments will be passed to programs. If an executable cannot be found, print an error message and display the prompt again. Handle errors. You have to handle the “end of file” condition (Ctrl+D). execve will be the core part of your Shell, don’t forget to pass the environ to it… Handle command lines with arguments Handle the PATH fork must not be called if the command doesn’t exist. Implement the exit built-in, that exits the shell Usage: exit You don’t have to handle any argument to the built-in exit. Implement the env built-in, that prints the current environment

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages