Closed levex closed 7 years ago
Why is the last byte replaced with \0 on EOF? This makes it impossible to exit the shell using ^D. A simple fix would be:
\0
EOF
^D
if (c == EOF) exit(0);
Yeah, you're right.
Why is the last byte replaced with
\0
onEOF
? This makes it impossible to exit the shell using^D
. A simple fix would be: