[PATCH] Doc expand fdmove intuition

From: Profpatsch <mail_at_profpatsch.de>
Date: Sun, 14 Feb 2021 15:47:15 +0100

I had quite big problems getting an intuition for fdmove, and the way
aranea phrased it (by effect) makes a lot of sense to me.
---
 doc/fdmove.html | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/doc/fdmove.html b/doc/fdmove.html
index 39bdb2b..b9a0e46 100644
--- a/doc/fdmove.html
+++ b/doc/fdmove.html
_at_@ -45,6 +45,12 @@ instead of moving it; do not close <em>fdfrom</em>. </li>
 
 <h2> Notes </h2>
 
+<blockquote>
+ <p><tt>fdmove <em>1</em> <em>2</em> prog...</tt> means: if you write to <tt>fd <em>1</em></tt> now, it’ll have the same effect as writing to <tt>fd <em>2</em></tt> before, and you can’t write to <tt>fd <em>2</em></tt> anymore.
+<br />
+… and<tt> fdmove -c <em>1</em> <em>2</em> prog...</tt> means: you can also still write to <tt>fd <em>2</em></tt> and it’ll have the same effect as before.</p>
+</blockquote>
+
 <ul>
  <li> <tt>fdmove -c <em>a</em> <em>b</em> prog...</tt> is roughly equivalent to
 <tt>sh -c 'exec prog... <em>a</em>&gt;&amp;<em>b</em>'</tt></li>
-- 
2.30.0
Received on Sun Feb 14 2021 - 14:47:15 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC