It works for me even without the final newline.
Another interesting point is that nysus mentioned that pressing CTRL-Z causes the program to terminate immediately where my experience (and current testing) shows that you have to press ENTER after the CTRL-Z for the EOF to be noticed by the program.
I'm not sure where to look next but I'd probably look at the "DOS properties" of the window that the script is running in. Perhaps the CTRL-Z key sequence has been found to some other function? (Though I can't see how even that would explain the stated behavior.)
- tye (but my friends call me "Tye")In reply to (tye)Re: Generating EOF character on Win98
by tye
in thread Generating EOF character on Win98
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |