slackware 14.0: how is user input to console terminated (EOT)? Ctrl-D used to work.
What's said.
|
bash won't acknowledge it if there are characters on the line
|
What about linux programs that take input from console? The buffer must be first emptied by the program?
|
Ctrl-C then Ctrl-D
That should first kill any process in the foreground controlled by that console/tty/pty. Of course you can type Ctrl-z then "bg" if want to keep the process running. |
I see that is the case. "tr '\n' ' '" is immediately exits when typing ^D because it reads manual input very rapidly.
|
Quote:
|
Quote:
ctrl-d is EOF/EOT so if you press is on an empty line, the next read() that program does will be of length 0 i think in non-canonical mode the EOF character (0x4) will be passed to the program |
I like to know what the behavior is for sendmail. Going back the title matter: in slackware 12.0 ^D irrevocably ended user console input. It never failed to terminate input.
|
Instead of asking vague questions, tell us exactly what command is not accepting your Ctrl-D in Slackware 14.0 when it was working in earlier versions.
Or perhaps for your user account on this computer you have set ignoreeof? Then you need to enter Ctrl-D 10 times before it gets accepted by the shell. (enabling ignoreeof is achieved by adding this to your .bashrc or .profile: "set -o ignoreeof") Eric |
Code:
bill@server:~$ set|grep ignoreeof |
All times are GMT -5. The time now is 05:51 PM. |