nuta / nsh

A command-line shell like fish, but POSIX compatible.
906 stars 34 forks source link

Crash on CTRL+D #41

Open eliminmax opened 2 years ago

eliminmax commented 2 years ago

I'm in the habit of inserting the EOT special character with ctrl+d to quit command-line programs. If I do that in nsh, I get the follwoing error:

nsh: panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', /home/eliminmax/.local/lib/rust/cargo/registry/src/github.com-1ecc6299db9ec823/nsh-0.4.2/src/bash_server.rs:26:33
nsh:    0:     0x55cbf52482a7 - <unknown>
   1:     0x55cbf5237d95 - <unknown>
   2:     0x55cbf51dd51e - <unknown>
   3:     0x55cbf52cf904 - <unknown>
   4:     0x55cbf52cf5b7 - <unknown>
   5:     0x55cbf52cd324 - <unknown>