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 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'doc/backtick.html') 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. +

    + -- cgit v1.2.3