While working on making our unit tests compatible with issue #4163 I noticed that read x does not define x if the read fails because too much data was read. This wasn't noticed by the unit tests because they relied on string length "$x" to report zero if the var is empty or undefined. It seems to me the var should be defined but with no elements, not even a single empty string, when the read fails in this manner.
Does anyone have a different opinion?
The text was updated successfully, but these errors were encountered:
While working on making our unit tests compatible with issue #4163 I noticed that
read x
does not definex
if the read fails because too much data was read. This wasn't noticed by the unit tests because they relied onstring length "$x"
to report zero if the var is empty or undefined. It seems to me the var should be defined but with no elements, not even a single empty string, when the read fails in this manner.Does anyone have a different opinion?
The text was updated successfully, but these errors were encountered: