From 40d64898c9d37142e808f1a9914d7455054c7cc2 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 15 Mar 2021 16:57:52 +0000 Subject: docfix: forstdin actually chomps the last line even without crunching --- doc/forstdin.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/forstdin.html') diff --git a/doc/forstdin.html b/doc/forstdin.html index fb04f14..a3634a6 100644 --- a/doc/forstdin.html +++ b/doc/forstdin.html @@ -79,11 +79,11 @@ mechanism and has its own semantics for those options.
  • -N : store the whole line in variable, including the terminating newline (or other delimiter).
  • -n : chomp a terminating delimiter from the line from -stdin before storing it into variable. This is the default.
  • +stdin before storing it into variable. This is the default. +Note that if chomping is active, and the last line of stdin is not +terminated by a delimiter, then this last line will not be processed.
  • -C : crunch. If there is an empty line (i.e. that -only contains a delimiter), do not call loop. If this option is -given, and chomping is active, and the last line of stdin -is not terminated by a delimiter, then this last line will not be processed.
  • +only contains a delimiter), do not call loop.
  • -c : do not crunch, call loop even if the line is empty. This is the default.
  • -0 : accept null characters on its stdin, -- cgit v1.3.1