From a5b7a319fb558f5df599de286318029d455ed193 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 6 Apr 2024 17:54:13 +0000 Subject: Prepare for 2.9.5.0; add ? support in backtick Signed-off-by: Laurent Bercot --- doc/backtick.html | 21 +++++++++++++++++---- doc/index.html | 4 ++-- doc/upgrade.html | 6 ++++-- 3 files changed, 23 insertions(+), 8 deletions(-) (limited to 'doc') diff --git a/doc/backtick.html b/doc/backtick.html index 14cc031..38c02a2 100644 --- a/doc/backtick.html +++ b/doc/backtick.html @@ -49,10 +49,15 @@ output as a value.
  • -N : store prog1...'s output as is, including the last newline, if any.
  • -n : chomp an ending newline off prog1...'s output. This is the default.
  • -e : no autoimport. This is the default.
  • -
  • -E : autoimport. Instead of exec'ing into -prog2..., exec into importas -ui variable variable -prog2.... This substitutes variable into the command -line instead of putting it into the environment.
  • +
  • -E : autoimport. Before exec'ing into +prog2..., perform a +substitution +so that $? is replaced with prog1...'s exitcode (if +applicable, see below), and +${variable} is replaced with prog1...'s output, +instead of keeping the results in the environment. The variables will not +appear in the environment; if they preexisted in backtick's +environment, they will be removed.
  • @@ -76,5 +81,13 @@ the environment, and execution proceeds. is set to default, and execution proceeds. +

    + If the command line can keep running after prog1 crashes or exits +nonzero, i.e. if one of the -I, -x -or -D has been +given, then backtick also adds the ? variable to the +environment; it then contains an approximation +of prog1's exit code. +

    + diff --git a/doc/index.html b/doc/index.html index 0a226ab..73b7867 100644 --- a/doc/index.html +++ b/doc/index.html @@ -51,7 +51,7 @@ shell's syntax, and has no security issues.
  • A POSIX-compliant system with a standard C development environment
  • GNU make, version 3.81 or later.
  • skalibs version -2.14.1.0 or later. It's a build-time requirement. It's also a run-time +2.14.1.1 or later. It's a build-time requirement. It's also a run-time requirement if you link against the shared version of the skalibs library.
  • @@ -77,7 +77,7 @@ want nsswitch-like functionality:

    Download