From 680b08a9d69fcb3582203ca5e1e6f0ba88fea9e0 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 24 Nov 2020 11:26:35 +0000 Subject: 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. --- NEWS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 6be3c4d..7ef56a9 100644 --- a/NEWS +++ b/NEWS @@ -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". -- cgit v1.2.3