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
---
INSTALL | 2 +-
NEWS | 7 +++++++
doc/backtick.html | 16 +++++++++-------
doc/index.html | 4 ++--
doc/upgrade.html | 9 +++++++++
package/info | 2 +-
src/execline/backtick.c | 26 +++++++++++++-------------
7 files changed, 42 insertions(+), 24 deletions(-)
diff --git a/INSTALL b/INSTALL
index 6664c35..d6a98ad 100644
--- a/INSTALL
+++ b/INSTALL
@@ -6,7 +6,7 @@ Build Instructions
- A POSIX-compliant C development environment
- GNU make version 3.81 or later
- - skalibs version 2.10.0.1 or later: https://skarnet.org/software/skalibs/
+ - skalibs version 2.10.0.2 or later: https://skarnet.org/software/skalibs/
- Optional: nsss version 0.1.0.0 or later: https://skarnet.org/software/nsss/
This software will run on any operating system that implements
diff --git a/NEWS b/NEWS
index 5e59371..7d651a5 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,12 @@
Changelog for execline.
+In 2.8.0.0
+----------
+
+ - backtick now propagates failure by default; its options have
+slightly different semantics.
+
+
In 2.7.0.1
----------
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.