I would like to know how we can map the keys Ctrl-D in ksh to exit the shell as it does in bash shell.
Not much familiar with key binding in ksh.
Edit
See my comments below.
$ echo $0
bash
$ exit # I pressed Ctrl-D here, 'exit' string was placed and the shell exited
$> echo $0
ksh
$> Use 'exit' to leave ksh # I pressed Ctrl-D here, Got this message and returned to the ksh prompt
$> echo $0
ksh
$> cat >> somefile
Some text
$> # I pressed Ctrl-D here. So this key combination is taken as eof char for file, but not for exit.
So, it's needs Ctrl-D to be mapped to exit the shell? How do I do that?
exit
when exiting, ksh doesn't.