buffered read
Bug #1356894 reported by
Thorsten Glaser
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 |
To post a comment you must log in.
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…