Re: [PATCH] Doc expand fdmove intuition

From: Profpatsch <mail_at_profpatsch.de>
Date: Thu, 20 May 2021 19:20:52 +0200

Ping, did this email go through to the list?

Profpatsch <mail_at_profpatsch.de> writes:

> 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__at_ -45,6 +45,12 _at__at_ 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>
Received on Thu May 20 2021 - 19:20:52 CEST

This archive was generated by hypermail 2.4.0 : Thu May 20 2021 - 19:21:27 CEST