Re: Is this a bug or expected behavior?
- Posted by ChrisB (moderator) Dec 04, 2020
- 1161 views
Hi Lonny
Sometimes it's a case of your program not meeting your expectations. I don't like trace, as generally it gets in the way.
Try this
--test.ex include std/io.e include std/get.e sequence numbers = {} object line atom one_num --with trace --trace(1) while 1 do line = get(STDIN) if line[1] = GET_EOF then exit end if ?line --shows each line as it comes in, whether from console or redirected STDIN one_num = line[2] numbers &= one_num end while ?numbers --remember ctr-Z sends EOF from console
What are you defined expectations of output here?
Cheers
Chris