metaeducation / rebol-issues

6 stars 1 forks source link

INPUT redirection uses fixed sized buffer #2364

Open hostilefork opened 5 years ago

hostilefork commented 5 years ago

The INPUT command speaks to the console PORT! which uses a fixed size buffer. (It is called OUT_BUF_SIZE, even though the Console_Actor only reads). There is no loop or other control to ask the device layer for more input.

Hence a simple %echo.reb which contains just print input can be invoked as;

 r3 echo.reb < some-large-file.txt

It will read neither just one line, nor will it read the entirety of the file.