From c867dad6b9ad48f85cf1ca9182ac4d55c2d1acf7 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 1 Apr 2026 00:56:53 +0000 Subject: Add -v option to redirfd --- doc/redirfd.html | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'doc/redirfd.html') diff --git a/doc/redirfd.html b/doc/redirfd.html index 9dbe409..17b7303 100644 --- a/doc/redirfd.html +++ b/doc/redirfd.html @@ -26,7 +26,8 @@ executes a program.

Interface

-     redirfd [ -r | -w | -u | -a | -x ] [ -n ] [ -b ] fd file prog...
+     redirfd [ -r | -w | -u | -a | -x ] [ -n ] [ -b ] fd file prog...
+ redirfd [ -r | -w | -u | -a | -x ] [ -n ] [ -b ] [ -v ] [ -e | -E ] var file prog...

@@ -34,6 +35,13 @@ executes a program. to file, then execs into prog....

+

+When run with the -v option, the first argument is instead +interpreted as an environment variable. redirfd opens file, +stores the obtained file descriptor into environment variable var, +then execs into prog.... +

+

Options

@@ -51,6 +59,14 @@ the -n and -b options may be added in any case.

  • -b : change mode of file after opening it: to non-blocking mode if the -n option was not given, to blocking mode if it was.
  • +
  • -v : interpret the first argument as an environment variable, +and stores the new file descriptor into that variable before execing.
  • +
  • -e : no autoimport. This is the default.
  • +
  • -E : autoimport. This is only useful with the -v option. +Instead of executing +prog..., execute importas -uSi var prog.... +This substitutes var into the command line instead of putting it into +the environment.
  • Notes

    -- cgit v1.3.1