issues
search
moop250
/
minishell
1
stars
1
forks
source link
Execution handling
#11
Closed
Sukori
closed
2 months ago
Sukori
commented
3 months ago
Current:
minishell_loop initializes core
exec assumes that the first argument is a built-in command (ls, cd, pwd,...) from envp
error in any other situation
one function for mono command and one other function for pipes
Expectation:
[x] minishell_loop initializes core
[x] exec tries to access(core->init->params[0], X_OK)
[x] on success, this was an executable file
[x] on failure, this is probably a /bin/... -> try on envp
[x] the loop function for pipes also works with 0 pipes -> replace execute()
[x] infile
[x] outfile
[x] error in any other situation
[x] error does not crash
[x] detect builtins
[x] signals
Sukori
commented
2 months ago
So far, bugs seem properly handled
Sukori
commented
2 months ago
aw yeah
Current:
Expectation: