EnriqueSLeeK / minishell

A simple and mini shell
0 stars 1 forks source link

Segmentation fault #29

Closed EnriqueSLeeK closed 2 years ago

EnriqueSLeeK commented 2 years ago

When a operator argument is blank, segmentation fault is triggered

>
segmentation fault

<
segmentation fault

>>
segmentation fault

<<
segmentation fault doesn't happen but there is a invalid memory access in the child process

i suggest checking the argument first then handling the operators