set ignoreeof 에 관한 질문입니다.
이런 저런 정보를 찾아 다니다가 stty 라는 걸 보고
eof 를 무시할 수 있는 방법을 찾아보니
bash 에서는 .bashrc 혹은 bashrc 에 set -o ignoreeof 라는 줄을 추가해주면
적용이 된다는 것을 알게 됬습니다.
실제 적용해보니 잘 작동이 됩니다.
근데 한가지 문제가 있내요.
연속해서 Ctrl + D 를 해보았더니..
[test@hostname ~]$ Use "logout" to leave the shell.
[test@hostname ~]$ Use "logout" to leave the shell.
[test@hostname ~]$ Use "logout" to leave the shell.
[test@hostname ~]$ Use "logout" to leave the shell.
[test@hostname ~]$ Use "logout" to leave the shell.
[test@hostname ~]$ Use "logout" to leave the shell.
[test@hostname ~]$ Use "logout" to leave the shell.
[test@hostname ~]$ Use "logout" to leave the shell.
[test@hostname ~]$ Use "logout" to leave the shell.
[test@hostname ~]$ Use "logout" to leave the shell.
[test@hostname ~]$ logout
Ctrl + D 가 먹히내요...;;;;;;;;
연속해서 10회 누른뒤 11번 째때는 로그아웃이 되어 버립니다.
혹시 이 횟수에 관한 설정이 또 따로 있는 것인지요 ?
횟 수에 관한 설정이 따로 없는 것이라면
저렇게 똑같은 메세지가 10회 이상 반복되서 뜨는 터미널 번호나 PID를 알 수 있을까요 ?
man bash 하니
man bash 하니 나오네요. 기본값은 10이고 원하는만큼 설정가능하군요.
아하
bash 에서 설정해주는 거였군요 !
답변 감사합니다 ^^
근데 혹시 무한정으로 설정을 할 수 있을까요 ?
무제한으로 설정하는
무제한으로 설정하는 건 없어보이는데 99999 정도로 주면 사실상 무제한처럼 쓸 수 있지 않을까요.
역시나...
역시나 그방법밖에 없나보군요..ㅠ
답변 감사합니다!
댓글 달기