bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/7] doc: Document interaction between `exec` and redirections


From: Gioele Barabucci
Subject: [PATCH 1/7] doc: Document interaction between `exec` and redirections
Date: Sat, 20 Sep 2025 23:27:29 +0200

From: Matthias Klose <doko@debian.org>

This addition to the documentation has been shipped in Debian's bash
since version 4.3~rc1-1.
---
 doc/bash.1       | 4 ++++
 doc/bashref.texi | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/doc/bash.1 b/doc/bash.1
index 8724835d..92ed89fc 100644
--- a/doc/bash.1
+++ b/doc/bash.1
@@ -4784,6 +4784,10 @@ A failure to open or create a file causes the 
redirection to fail.
 Redirections using file descriptors greater than 9 should be used with
 care, as they may conflict with file descriptors the shell uses
 internally.
+.PP
+Note that the
+.B exec
+builtin command can make redirections take effect in the current shell.
 .SS Redirecting Input
 Redirecting input opens the file whose name results from
 the expansion of
diff --git a/doc/bashref.texi b/doc/bashref.texi
index 41dfd35e..62299b10 100644
--- a/doc/bashref.texi
+++ b/doc/bashref.texi
@@ -3408,6 +3408,9 @@ Redirections using file descriptors greater than 9 should 
be used with
 care, as they may conflict with file descriptors the shell uses
 internally.
 
+Note that the @code{exec} builtin command can make redirections take
+effect in the current shell.
+
 @subsection Redirecting Input
 Redirecting input opens the file whose name results from
 the expansion of @var{word} for reading on file descriptor @code{n},
-- 
2.51.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]