buffered read

Bug #1356894 reported by Thorsten Glaser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mksh
New
Wishlist
Unassigned

Bug Description

The read builtin read(2)s octet for octet. This is often suboptimal, speed-wise.

Implement a switch for buffered read.

Maybe also automated buffered read for cases like -N/-n given.

Reported by: igli

Changed in mksh:
importance: Undecided → Wishlist
Revision history for this message
Thorsten Glaser (mirabilos) wrote :

String input, too.

Using 「read -raN-1 s <<<"$v"; unset s[${#s[*]}-1]」 to convert a string into a character array isn’t *that* cheap, considering what “<<<” does…

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.