-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"stty sane" setting causes Bash kernel to misbehave #78
Comments
|
Got it. That happens in the In general I'm fine with avoiding Perhaps |
Yep, that's If it's coming from |
Ah, I didn't know that Alternatively, perhaps I'm not sure how pressing this is for other users; things work fine for me now that I understand the problem. So I'll leave it to you what to do about it (if anything)--thanks! |
Truth be told, I'm unlikely to get to doing anything about it - it's not a problem for me personally, and there are plenty of other things to do. I'll leave the issue open in case anyone else wants to explore possible changes in this area. |
I think this would be solved by gating termina-specific things behind an "am I running in bash_kernel" conditional, per #145 |
This is a weird one. It seems if you put
stty sane
in your.bashrc
file, then the Bash kernel will misbehave. Misbehavior includesslee
and press tab it should autocomplete tosleep
, but instead it suggests bothslee
andsleep
.1
(I think)Here's a repro based on Docker:
mkdir bash-kernel-debug && cd bash-kernel-debug
Dockerfile
in this folder:docker build -t bash-kernel-debug .
docker run -it --rm bash-kernel-debug bash
jupyter console --kernel bash
whoami
and observe how the input echoes back.stty sane
line from the Dockerfile and re-build, the problem goes away.Actually, an even easier repro if you already have a working Bash kernel installation is to simply type
stty sane
into a console or notebook. Then every subsequent command will misbehave the same way. I'll leave the Dockerfile above in case it's helpful though.I found online that
stty sane
is equivalent to a complicated command for normalizing the treatment of special characters:stty cread -ignbrk brkint -inlcr -igncr icrnl -ixoff -iuclc -ixany imaxbel opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke
. But I have no idea why it causes issues. Hope this helps!The text was updated successfully, but these errors were encountered: