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)

tailquit.txt (67 bytes ) - added by leavengood 15 years ago.
Test file with the special character on line 4.

Download all attachments as: .zip

Change History (4)

by leavengood, 15 years ago

Attachment: tailquit.txt added

Test file with the special character on line 4.

comment:1 by bonefish, 15 years ago

Component: System/KernelDrivers/TTY
Owner: changed from axeld to bonefish

comment:2 by bonefish, 15 years ago

Status: newassigned

comment:3 by bonefish, 15 years ago

Blocked By: 2409 added
Resolution: duplicate
Status: assignedclosed

Dup of #2409.

Note: See TracTickets for help on using tickets.