biralavor / 42_minishell

WIP - minishell, a 42 school team project to rebuild a tiny bash, using C language. Build with @Thais-Malheiros
MIT License
1 stars 0 forks source link

fix builtin runner exit - case 4 and 5 #198

Closed biralavor closed 1 week ago

biralavor commented 1 week ago

treat cases for exit with arguments

Previous cases (1, 2 and 3), here: #197

Case 4:

exit 'signed long long' = 9223372036854775807 bash result:

exit

and it exits with 255

However:


Case 5:

exit 4ddfkj bash result:

exit
bash: exit: %s: numeric argument required

and it exits with 2