Re: EOF not disabled in readline

2020-07-27 Thread Chet Ramey
On 7/24/20 1:32 AM, Grisha Levit wrote: > It seems that disabling the EOF character does not have an effect on > readline. No. Readline will bind a few of the special tty characters to their readline equivalents (controlled by the `bind-tty-special-chars' variable), but the EOF character is not o

Re: EOF not disabled in readline

2020-07-25 Thread Dale R. Worley
Grisha Levit writes: > It seems that disabling the EOF character does not have an effect on > readline. For example: > > $ stty sane > $ stty eof undef > $ ^D > Use "logout" to leave the shell. > $ read -e; echo $? > ^D > 1 That's messy! When you execute "read -e", yo

EOF not disabled in readline

2020-07-23 Thread Grisha Levit
It seems that disabling the EOF character does not have an effect on readline. For example: $ stty sane $ stty eof undef $ ^D Use "logout" to leave the shell. $ read -e; echo $? ^D 1 But the setting did take effect, as can be verified by running, e.g. `read' w/o readli