From 8d67429c8b37415b04ec195dab9bdbcec8ec013a Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 24 Nov 2020 10:44:08 +0000 Subject: Make forstdin only split on newlines by default --- NEWS | 3 ++- doc/forstdin.html | 6 ++++-- doc/upgrade.html | 3 ++- src/execline/forstdin.c | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index 54b3ebe..6be3c4d 100644 --- a/NEWS +++ b/NEWS @@ -3,7 +3,8 @@ Changelog for execline. In 2.7.0.0 ---------- - - New -e option to forstdin. + - forstdin QoL changes: new -e option to exit nonzero on EOF, +and it now only splits on newlines by default. - New "default" directive to trap, replacing the irrelevant "timeout". diff --git a/doc/forstdin.html b/doc/forstdin.html index f57ee9c..c7cc3d4 100644 --- a/doc/forstdin.html +++ b/doc/forstdin.html @@ -35,7 +35,7 @@ run another program.

Notes

diff --git a/doc/upgrade.html b/doc/upgrade.html index aa23ab2..690c87e 100644 --- a/doc/upgrade.html +++ b/doc/upgrade.html @@ -23,7 +23,8 @@ diff --git a/src/execline/forstdin.c b/src/execline/forstdin.c index 7979811..323ef59 100644 --- a/src/execline/forstdin.c +++ b/src/execline/forstdin.c @@ -47,7 +47,7 @@ static void parallel_sigchld_handler (int sig) int main (int argc, char const **argv, char const *const *envp) { - char const *delim = " \n\r\t" ; + char const *delim = "\n" ; size_t delimlen = 4 ; size_t nbc = 0 ; unsigned short okcodes[256] ; -- cgit v1.3.1