Opened 15 years ago
Closed 15 years ago
#4065 closed bug (duplicate)
tail, head, cat, grep (and probably more) quit when an input file has a certain special character
Reported by: | leavengood | Owned by: | bonefish |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Drivers/TTY | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | #2409 | Blocking: | |
Platform: | All |
Description
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.
Attachments (1)
Change History (4)
by , 15 years ago
Attachment: | tailquit.txt added |
---|
comment:1 by , 15 years ago
Component: | System/Kernel → Drivers/TTY |
---|---|
Owner: | changed from | to
comment:2 by , 15 years ago
Status: | new → assigned |
---|
comment:3 by , 15 years ago
Blocked By: | 2409 added |
---|---|
Resolution: | → duplicate |
Status: | assigned → closed |
Dup of #2409.
Test file with the special character on line 4.