The first challenging 42 project: a bash terminal.
Firstly, clone the repository into you computer directory:
git clone https://github.com/alexpg7/minishell.git minishell && cd minishellOnce cloned, just execute the make command:
makeThe makecommand should notify when libft.a and minishell are compiled.
minishell can be executed with a command, just like with bash. For example:
./minishell echo "Hello, world!"should output:
Hello, world!
To execute the usual mode, execute minishell without any other argument:
./minishellThe program should open up a prompt with your pwd and should allow you to start writing commands:
Welcome to minishell
/...(your pwd).../minishell->
From now on, you can use minishell as if it was bash, with some limitations...
minishell works as a functional shell, but some features have not been implemented (and will never be):
- Double pipe
||operator works as a double pipe with no command in between &,&&operators do not work- Unclosed quotes will not be asked to be completed, they will just fail
- Pipes with no commmand (example:
echo hola | | grep h) will just fail - Wildcards
*are not implemented - Parentheses
()are interpreted as regular characters, they do not stablish any priority - Environment variables (
$VAR) are interpreted after splitting arguments (this means that spaces and quotes insideVARdo not influence the command, they are not key characters) +=operator fromexportcommand is not implemented;and\are interpreted as regular characters