4 ms·
> which worked because the V6 shell didn't use buffered input; it read its input line by line Isn't this the case still, though? I've been bitten by this many
by jmmv 3y ago
> which worked because the V6 shell didn't use buffered input; it read its input line by line
Isn't this the case still, though? I've been bitten by this many times: start a long-running script, modify it in the meantime, and see the running script crash due to syntax errors and the like.
- xyzzy_plugh 3y agoNot quite the same thing. The old shell would stop reading at `\n`, whereas buffered input means the process has an arbitrary buffer of bytes read ahead. Modifying the file while it's executing would cause issues in either scenario, so long as any part of the file was unbuffered. I think you're interpreting buffering to mean "buffer the entire file" which isn't what happens here.
- kragen 3y agodash 0.5.12-2 line buffers, haven't tested bash you see this happen even in very small shell scripts