tail, head, cat, grep (and probably more) quit when an input file has a certain special character
|Reported by:||leavengood||Owned by:||bonefish|
I discovered this when trying to log keys while debugging the Twitcher. Whenever I would output the left arrow key (cast to a char) in the syslog, tail would quit. Opening the syslog in vim I found that a special character was being printed (\) and when I put that inside a test file (attached) I found it would cause tail, head, cat and grep to quit (and probably anything else that reads input from a file in the terminal.)
To test simply "head -n 3 tailquit.txt" to see it work and then "head -n 4 tailquit.txt" to see head quit.
The same test file does not cause problems on Linux.
I am filing this under Kernel since I assume it has something to do with the tty emulation. If I am wrong please simply reassign to the correct place.