Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


More on LinuxToday


Prevent shell from exiting in single ^D

Jan 16, 2010, 12:03 (1 Talkback[s])

[ Thanks to Jadu Saikia for this link. ]

"The function of 'Ctrl-d'(^D) key is to exit the shell. If IGNOREEOF variable does not exist in your shell a single ^D will exit from the shell (this is the default behavior).

"What is this $IGNOREEOF ?

"It controls the action of the shell on receipt of an EOF character as the sole input.

"If set, the value is the number of consecutive EOF characters typed as the first characters on an input line before bash exits."

Complete Story

Related Stories: