export variableメソッドを使用する場合、次のbashシェルはeofを無視できます(^ Dを押すと終了しません)。しかし、^Dを押すことで子bashを終了できるようにしたいと思います。この仕事をすることができるbashのコマンドラインオプションはありますか?
export ignoreeof=1
exec bash # assume this bash's pid = 1234
bash$ ^D
bash$ Use "exit" to leave the shell.
bash$ bash # assume this bash's pid = 2234
bash$ ^D <-- I wish this could exit bash(pid=2234)