Closed marimlem closed 3 months ago
exitcode of "ls: cannot access" is different in bash and minishell...
bash:$ ls fdsfs bash:$ echo $? 2
bash:$ exit 512 bash:$ echo $? 0
=============
minishell:$ ls fsdjfl minishell:$ echo $? 512 minishell:$ exit bash:$ echo $? 0
solved! (had accidentally overwritten d->exit_code at the beginning of builtins)
exitcode of "ls: cannot access" is different in bash and minishell...
bash:$ ls fdsfs bash:$ echo $? 2
bash:$ exit 512 bash:$ echo $? 0
=============
minishell:$ ls fsdjfl minishell:$ echo $? 512 minishell:$ exit bash:$ echo $? 0