From 631f809ce4a14ec6f1af5118b99adc514be7db60 Mon Sep 17 00:00:00 2001
From: Laurent Bercot
Date: Tue, 2 Feb 2021 01:20:49 +0000
Subject: Prepare for 2.8.0.0; change backtick options and default behaviour
---
doc/backtick.html | 16 +++++++++-------
doc/index.html | 4 ++--
doc/upgrade.html | 9 +++++++++
3 files changed, 20 insertions(+), 9 deletions(-)
(limited to 'doc')
diff --git a/doc/backtick.html b/doc/backtick.html
index 91e963a..e5a889d 100644
--- a/doc/backtick.html
+++ b/doc/backtick.html
@@ -30,7 +30,7 @@ environment variable, then executes another program.
- backtick [ -i | -I | -D default ] [ -N | -n ] [ -E | -e ] variable { prog1... } prog2...
+ backtick [ -i | -I | -d | -D default ] [ -N | -n ] [ -E | -e ] variable { prog1... } prog2...
@@ -63,15 +63,17 @@ nonzero:
- - -i : backtick exits 1.
- - -I : variable is removed from
+
- -i : backtick exits with an
+approximation of prog1's exit code,
+or 124 if prog1 wrote a null character. This is the default.
+ - -I: the value of variable is set to whatever
+the start of prog1...'s output is, up to the first null character,
+or to whatever prog1... wrote before crashing; chomping is applied
+if required; then execution proceeds.
+ - -d : variable is removed from
the environment, and execution proceeds.
- -D default : the value of variable
is set to default, and execution proceeds.
- - neither of those options: the value of variable is set to whatever
-the start of prog1...'s output is, up to the first null character,
-or to whatever prog1... wrote before crashing;
-then execution proceeds.