SteveLauC/Understanding-Unix-Linux-Programming

Exit the child process when command is invalid instead of making it panic

SteveLauC opened this issue · 0 comments

project state reason or bug behaviour
Ch9 02.smsh smsh1-rs Buggy when an invalid cmd is given, the child process will panic due to the call of unreachable!()
Ch9 02.smsh smsh2-rs Buggy when an invalid cmd is given, the child process will panic due to the call of unreachable!()
Ch9 02.smsh smsh3-rs Buggy when an invalid cmd is given, the child process will panic due to the call of unreachable!()
Ch9 02.smsh smsh4-rs Buggy when an invalid cmd is given, the child process will panic due to the call of unreachable!()