42's minishell project.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
popohl b531067449 Added the beginning of '<<' redirection handling. 3 months ago
bonus Added the beginning of '<<' redirection handling. 3 months ago
inc 'command > redirection | other_command' now works like in bash. 3 months ago
libft Renamed libft/src to libft/srcs and removed very useless functions. 3 months ago
srcs Added the beginning of '<<' redirection handling. 3 months ago
utils Added the beginning of '<<' redirection handling. 3 months ago
.gitignore Added checking whether the program entered is in the path. 3 months ago
Makefile Added the beginning of '<<' redirection handling. 3 months ago
README.md Added the beginning of '<<' redirection handling. 3 months ago

README.md

minishell

Minishell is a project where a team of 2 people have to recreate certain features from bash.

pouet

Idée pour parser:

Save each command (separated by ';' or '|') in a link list.

The following process will be applied to each command: 1. split by ' ', '<', '>' and '>>' 2. parse the command and it's arguments 3. if '<' after or '|' before => launch program with stdin filled in. - *Priority to '<' over '|' 4. else launch the program 5. if '|', '>' or '>>' after, save the stdout for the next program 6. else print stdout