diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-11-24 11:26:35 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-11-24 11:26:35 +0000 |
commit | 680b08a9d69fcb3582203ca5e1e6f0ba88fea9e0 (patch) | |
tree | e81ba779f78f75a2683f06c2ff70737bdfbf1388 /NEWS | |
parent | 8d67429c8b37415b04ec195dab9bdbcec8ec013a (diff) | |
download | execline-680b08a9d69fcb3582203ca5e1e6f0ba88fea9e0.tar.xz |
Better forstdin
No need for the complexity: the important distinction is between
"eof after reading something" and "eof right away". 0 is a natural
fit for eof after some data, and 1 is a natural fit for immediate eof.
Anything else can be scripted around this.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3,8 +3,8 @@ Changelog for execline. In 2.7.0.0 ---------- - - forstdin QoL changes: new -e option to exit nonzero on EOF, -and it now only splits on newlines by default. + - forstdin QoL changes: now it exits 1 if it doesn't read anything, +and it only splits on newlines by default. - New "default" directive to trap, replacing the irrelevant "timeout". |