iijung / minishell

간단한 bash 쉘 구현
0 stars 1 forks source link

fix/exit_status logic#77 #78

Closed CodyKat closed 1 year ago

CodyKat commented 1 year ago

lexing error exit_status

as-is

minishell$ '
minishell: lexing error
echo $?
0
minishell$ "
minishell: syntax error
minishell$ echo $?
258

be-to

minishell$ '
minishell: lexing error
minishell$ echo $?
258
minishell$ "
minishell: syntax error
minishell$ echo $?
258

setting execute exit_status

as-is

set exit_status in executor function

be-to

executor function only return int exit_status and set env in function main function