Sean P. DeNigris wrote
What do I need to do differently?
I found the problem in the VM, which is two-fold: 1. sqFileReadIntoAt reads from stdin with "fread(dst, 1, count, file);". fread reads until EOF. Because we're looking for "count" number of items all at once, if the input is shorter than this, it will never return unless an EOF is sent (ctrl-D on mac). Either of the following (not actually suggesting this as the final patch) fixes the problem and allows input to be read: sqFileReadIntoAt ... do { clearerr(file); if (file == stdin) { printf("Option 1: reading with fgets from stdin...\n"); fgets (dst, count, file); bytesRead = strlen(dst); //printf("Option 2: reading a character at a time with fread from stdin..."); //bytesRead = fread(dst, 1, 1, file); } else { printf("reading other...\n"); bytesRead = fread(dst, 1, count, file); } } while (bytesRead <= 0 && ferror(file) && errno == EINTR); HTH, Sean p.s. this was the same line that was hanging up PipeableOSProcess>>upToEnd... dunno if it's related... -- View this message in context: http://forum.world.st/Standard-input-in-Pharo-tp2173080p4607448.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.