On Mon, 5 Sep 2022, Matheus wrote:
I modified the sources from the Debian repository so to build on Bionic/Linux [Android]. The backspace issue is present there as well.
The backspace issue is seen on NetBSD and /bin/csh as well--if you run it on the _console_ as a regular user. If you run csh as root, or run it as any user in a pseudo-terminal (ie. in xterm/tmux or ssh/telnet and hosted on NetBSD), then it works as you would (intuitively) expect. It looks like file.c:tenex()->pushback() is using ioctl(TIOCSTI) to reinject typed chars. back into the "output" stream, and that fails on NetBSD nowadays (see checks in kern/tty.c). Anyway, since NetBSD csh is compiled with -DEDIT, try `set filec edit'. Then, you can use libedit for standard Emacs-style of line-editing, and tab for filename completion. -RVP